From e96ca7076f66ad6abe68161c29d766c6a88eafb1 Mon Sep 17 00:00:00 2001 From: "vincent@cubedesigners.com" Date: Mon, 21 Nov 2022 09:38:37 +0000 Subject: [PATCH] wip #5590 @0.5 --- .docker/docker-compose.yml | 3 +++ inc/ws/Util/html5/master/class.ws.html5.compiler.php | 1 + 2 files changed, 4 insertions(+) diff --git a/.docker/docker-compose.yml b/.docker/docker-compose.yml index 00946d7a1..aa0514420 100644 --- a/.docker/docker-compose.yml +++ b/.docker/docker-compose.yml @@ -28,6 +28,7 @@ services: - '/data/extranet/www/fluidbook/cache/nwbuild:/usr/lib/node_modules/nw-builder/cache' - '/home/toolbox/www:/home/toolbox/www' - '/home/stats/www:/home/stats/www' + - '/home/wesco:/home/wesco' # Config - '/home/extranet/www/.docker/config/httpd/httpd.conf:/usr/local/apache2/conf/httpd.conf' ports: @@ -67,6 +68,7 @@ services: - '/data/extranet/www/fluidbook/cache/nwbuild:/usr/lib/node_modules/nw-builder/cache' - '/home/toolbox/www:/home/toolbox/www' - '/home/stats/www:/home/stats/www' + - '/home/wesco:/home/wesco' # Config - '/home/extranet/www/.docker/config/httpd/httpd-nb.conf:/usr/local/apache2/conf/httpd.conf' ports: @@ -133,6 +135,7 @@ services: - '/data/extranet/www/fluidbook/cache/nwbuild:/usr/lib/node_modules/nw-builder/cache' - '/home/toolbox/www:/home/toolbox/www' - '/home/stats/www:/home/stats/www' + - '/home/wesco:/home/wesco' tmpfs: #- '/tmp:mode=777,uid=1002,gid=33' - '/var/log/extranet:uid=1002,gid=33' diff --git a/inc/ws/Util/html5/master/class.ws.html5.compiler.php b/inc/ws/Util/html5/master/class.ws.html5.compiler.php index b10fa73e2..072e319a5 100644 --- a/inc/ws/Util/html5/master/class.ws.html5.compiler.php +++ b/inc/ws/Util/html5/master/class.ws.html5.compiler.php @@ -2780,6 +2780,7 @@ height="0" width="0" style="display:none;visibility:hidden"> $cache = sha1($this->book->parametres->highlightResults . '/--/' . $this->book->parametres->searchWordSelectionAlgorithm . '///' . $this->book->parametres->textExtraction . '|--|' . $this->book->parametres->ignoreSearchSeparators . '|||' . $this->book->composition_update . '()()()' . filemtime(WS_TOOLS . '/fwstk/out/artifacts/fwstk_jar/fwstk.jar')); $cacheDir = WS_BOOKS . '/index/' . $this->book_id . '/' . $cache . '/'; if (!file_exists($cacheDir)) { + die($cacheDir); mkdir($cacheDir, 0777, true); $this->daoBook->makeTextsIndexes($this->book, $this->pages, $index, $textes, true); -- 2.39.5