Better cache settings logic
This commit is contained in:
parent
3265c2e543
commit
f3831fa77f
@ -32,10 +32,10 @@ class Photo extends \Zotlabs\Web\Controller {
|
|||||||
}
|
}
|
||||||
|
|
||||||
$cache_mode = array(
|
$cache_mode = array(
|
||||||
'on' => false, // Cache off
|
'on' => get_config('system','photo_cache_enable', 0),
|
||||||
'age' => 86400, // max-age
|
'age' => 86400,
|
||||||
'exp' => true, // Use own max-age
|
'exp' => true,
|
||||||
'leak' => false // Do not allow non members use our cache
|
'leak' => false
|
||||||
);
|
);
|
||||||
call_hooks('cache_mode_hook', $cache_mode);
|
call_hooks('cache_mode_hook', $cache_mode);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user