[geeklog-hg] geeklog: Fixed What's New Block cache being reset on incorrect c...

geeklog-cvs at lists.geeklog.net geeklog-cvs at lists.geeklog.net
Wed Jul 3 11:16:34 EDT 2013


changeset 9158:b53402a3e66b
url:  http://project.geeklog.net/cgi-bin/hgwebdir.cgi/geeklog/rev/b53402a3e66b
user: Tom <websitemaster at cogeco.net>
date: Wed Jul 03 10:15:35 2013 -0400
description:
Fixed What's New Block cache being reset on incorrect config option for any template config option changes

diffstat:

 system/lib-template.php |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 201073ba43d8 -r b53402a3e66b system/lib-template.php
--- a/system/lib-template.php	Wed Jul 03 10:14:04 2013 -0400
+++ b/system/lib-template.php	Wed Jul 03 10:15:35 2013 -0400
@@ -130,7 +130,7 @@
     // To be safe clear cache on enabling and disabling of cache
     if ($group == 'Core' AND (in_array('cache_templates', $changes) OR in_array('template_comments', $changes))) {
         CTL_clearCache();
-    } elseif ($_CONF['cache_templates']) {
+    } elseif ($_CONF['whatsnew_cache_time'] > 0) {
         // Probably not really necessary but clear cache if enabled on these other settings that can have cache files
         // These are from the What's New Block
         if ($group == 'Core' AND (in_array('newstoriesinterval', $changes) OR



More information about the geeklog-cvs mailing list