From: Chris Han Date: Sun, 26 Jul 2009 05:31:35 +0000 Subject: Make sure we always expire cache unless user very explicitly turns it off by setting it to false X-Git-Url: https://git.razvi.ro/?p=gitphp.git&a=commitdiff&h=9d8d5c716f0c26a2d6760e5ea7d9b4f60d15bc5f --- Make sure we always expire cache unless user very explicitly turns it off by setting it to false --- --- a/index.php +++ b/index.php @@ -56,7 +56,7 @@ if ($gitphp_conf['cache']) { $tpl->caching = 2; $tpl->cache_lifetime = $gitphp_conf['cachelifetime']; - if ($gitphp_conf['cacheexpire']) { + if (!(isset($gitphp_conf['cacheexpire']) && ($gitphp_conf['cacheexpire'] === FALSE))) { require_once('include/cache.cache_expire.php'); cache_expire($gitphp_conf['projectroot'], (isset($_GET['p']) ? $_GET['p'] : null), $git_projects); }