diff options
author | Max Kostikov <max@kostikov.co> | 2018-11-05 21:25:08 +0100 |
---|---|---|
committer | Max Kostikov <max@kostikov.co> | 2018-11-05 21:25:08 +0100 |
commit | 2dd124d09e05dad1f640f25dc8c3cd8abdfd1aad (patch) | |
tree | 84c6ae15e171d78ae5405e62c062fddb6e20b604 /Zotlabs | |
parent | d6523c67a64e590de4d5cddc6efeb5b2f8276eec (diff) | |
download | volse-hubzilla-2dd124d09e05dad1f640f25dc8c3cd8abdfd1aad.tar.gz volse-hubzilla-2dd124d09e05dad1f640f25dc8c3cd8abdfd1aad.tar.bz2 volse-hubzilla-2dd124d09e05dad1f640f25dc8c3cd8abdfd1aad.zip |
Use modern get_config() syntax
Diffstat (limited to 'Zotlabs')
-rw-r--r-- | Zotlabs/Module/Photo.php | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/Zotlabs/Module/Photo.php b/Zotlabs/Module/Photo.php index 8efc00707..41a145ae1 100644 --- a/Zotlabs/Module/Photo.php +++ b/Zotlabs/Module/Photo.php @@ -240,10 +240,8 @@ class Photo extends \Zotlabs\Web\Controller { // This has performance considerations but we highly recommend you // leave it alone. - $cache = get_config('system','photo_cache_time'); - if(! $cache) - $cache = (3600 * 24); // 1 day - + $cache = get_config('system','photo_cache_time', 3600); + header("Expires: " . gmdate("D, d M Y H:i:s", time() + $cache) . " GMT"); header("Cache-Control: max-age=" . $cache); |