Merge branch 'patch-23' into 'dev'
Use modern get_config() syntax See merge request hubzilla/core!1368
This commit is contained in:
commit
873fa16517
@ -240,10 +240,8 @@ class Photo extends \Zotlabs\Web\Controller {
|
|||||||
// This has performance considerations but we highly recommend you
|
// This has performance considerations but we highly recommend you
|
||||||
// leave it alone.
|
// leave it alone.
|
||||||
|
|
||||||
$cache = get_config('system','photo_cache_time');
|
$cache = get_config('system','photo_cache_time', 86400); // 1 day by default
|
||||||
if(! $cache)
|
|
||||||
$cache = (3600 * 24); // 1 day
|
|
||||||
|
|
||||||
header("Expires: " . gmdate("D, d M Y H:i:s", time() + $cache) . " GMT");
|
header("Expires: " . gmdate("D, d M Y H:i:s", time() + $cache) . " GMT");
|
||||||
header("Cache-Control: max-age=" . $cache);
|
header("Cache-Control: max-age=" . $cache);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user