[geeklog-hg] geeklog: Cache is automatically cleared now when caching is turn...
geeklog-cvs at lists.geeklog.net
geeklog-cvs at lists.geeklog.net
Thu Jun 27 12:44:38 EDT 2013
changeset 9136:ba0818b28094
url: http://project.geeklog.net/cgi-bin/hgwebdir.cgi/geeklog/rev/ba0818b28094
user: Tom <websitemaster at cogeco.net>
date: Tue Jun 25 20:36:11 2013 -0400
description:
Cache is automatically cleared now when caching is turned on or off (along with enabling/disabling template comments)
diffstat:
system/lib-template.php | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diffs (13 lines):
diff -r 5b0f957dc61e -r ba0818b28094 system/lib-template.php
--- a/system/lib-template.php Tue Jun 25 16:54:07 2013 -0400
+++ b/system/lib-template.php Tue Jun 25 20:36:11 2013 -0400
@@ -127,7 +127,8 @@
global $_TABLES, $_CONF;
// If template comments disabled or enabled clear all cached templates
- if ($group == 'Core' AND in_array('template_comments', $changes)) {
+ // 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();
}
}
More information about the geeklog-cvs
mailing list