diff --git a/Dockerfile b/Dockerfile index 15aa61f..1905032 100644 --- a/Dockerfile +++ b/Dockerfile @@ -62,8 +62,8 @@ COPY docker/php.ini /etc/php81/conf.d/custom.ini COPY docker/entrypoint.sh /usr/local/bin/ # Create the cache directories and change owner of everything we need. -RUN mkdir -p /var/www/cache/application \ - && chown -R jumpapp:jumpapp /var/www/html /var/www/cache/application \ +RUN mkdir /var/www/cache \ + && chown -R jumpapp:jumpapp /var/www/html /var/www/cache \ && chmod +x /usr/local/bin/entrypoint.sh # Expose the port we configured for nginx. diff --git a/Dockerfile-xdebug b/Dockerfile-xdebug index 49993fb..dabb40c 100644 --- a/Dockerfile-xdebug +++ b/Dockerfile-xdebug @@ -56,8 +56,8 @@ COPY docker/xdebug.ini /etc/php81/conf.d/50_xdebug.ini COPY docker/entrypoint.sh /usr/local/bin/ # Create the cache directories and change owner of everything we need. -RUN mkdir -p /var/www/cache/application \ - && chown -R jumpapp:jumpapp /var/www/html /var/www/cache/application \ +RUN mkdir /var/www/cache \ + && chown -R jumpapp:jumpapp /var/www/html /var/www/cache \ && chmod +x /usr/local/bin/entrypoint.sh RUN mkdir -p /tmp/xdebug \ diff --git a/jumpapp/classes/Cache.php b/jumpapp/classes/Cache.php index c97e92c..a9326d1 100644 --- a/jumpapp/classes/Cache.php +++ b/jumpapp/classes/Cache.php @@ -108,7 +108,7 @@ class Cache { if ($this->config->parse_bool($this->config->get('cachebypass'))) { $this->storage = new Caching\Storages\DevNullStorage(); } else { - $this->storage = new Caching\Storages\FileStorage($this->config->get('cachedir').'/application'); + $this->storage = new Caching\Storages\FileStorage($this->config->get('cachedir')); } }