aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Kostikov <max@kostikov.co>2018-11-29 21:27:06 +0100
committerMax Kostikov <max@kostikov.co>2018-11-29 21:27:06 +0100
commitf3831fa77fe62d8696f867259ae9f007a0a3d2ea (patch)
treead60a467afbcdc99faa3ed03507e3c6c1caacece
parent3265c2e54305fd46fdb237d716d34b4e77e98e08 (diff)
downloadvolse-hubzilla-f3831fa77fe62d8696f867259ae9f007a0a3d2ea.tar.gz
volse-hubzilla-f3831fa77fe62d8696f867259ae9f007a0a3d2ea.tar.bz2
volse-hubzilla-f3831fa77fe62d8696f867259ae9f007a0a3d2ea.zip
Better cache settings logic
-rw-r--r--Zotlabs/Module/Photo.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/Zotlabs/Module/Photo.php b/Zotlabs/Module/Photo.php
index b8d1c36f2..d85db7307 100644
--- a/Zotlabs/Module/Photo.php
+++ b/Zotlabs/Module/Photo.php
@@ -32,10 +32,10 @@ class Photo extends \Zotlabs\Web\Controller {
}
$cache_mode = array(
- 'on' => false, // Cache off
- 'age' => 86400, // max-age
- 'exp' => true, // Use own max-age
- 'leak' => false // Do not allow non members use our cache
+ 'on' => get_config('system','photo_cache_enable', 0),
+ 'age' => 86400,
+ 'exp' => true,
+ 'leak' => false
);
call_hooks('cache_mode_hook', $cache_mode);