From 14b2fbe00093e591ddcabebea7a3694dac07fe49 Mon Sep 17 00:00:00 2001 From: sparklyballs Date: Mon, 29 Aug 2016 18:19:12 +0100 Subject: [PATCH] add cache configuration --- root/defaults/config_local.php | 5 ++++- root/etc/cont-init.d/40-config | 5 +++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/root/defaults/config_local.php b/root/defaults/config_local.php index c5a5b14..5c97c46 100644 --- a/root/defaults/config_local.php +++ b/root/defaults/config_local.php @@ -33,7 +33,10 @@ */ $config['cops_x_accel_redirect'] = "X-Accel-Redirect"; - + /* Enable cache folder + * especially useful for lower power hosts + */ + $config['cops_thumbnail_cache_directory'] = "/cache"; /* * Enable and configure Send To Kindle (or Email) feature. * diff --git a/root/etc/cont-init.d/40-config b/root/etc/cont-init.d/40-config index a0ded90..43bdf89 100644 --- a/root/etc/cont-init.d/40-config +++ b/root/etc/cont-init.d/40-config @@ -1,5 +1,9 @@ #!/usr/bin/with-contenv bash +# create folders +mkdir -p \ + /cache + # make symlink [[ ! -e /var/www/localhost/cops ]] && \ ln -s /usr/share/webapps/cops /var/www/localhost/cops @@ -11,6 +15,7 @@ cp /config/config_local.php /var/www/localhost/cops/ # permissions chown -R abc:abc \ + /cache \ /config \ /usr/share/webapps/cops \ var/www/localhost/cops