[geeklog-hg] geeklog: Cache is now cleared when Geeklog goes from single lang...
geeklog-cvs at lists.geeklog.net
geeklog-cvs at lists.geeklog.net
Sat Jul 13 13:42:44 EDT 2013
changeset 9188:d2185e02e82d
url: http://project.geeklog.net/cgi-bin/hgwebdir.cgi/geeklog/rev/d2185e02e82d
user: Tom <websitemaster at cogeco.net>
date: Sat Jul 13 13:32:01 2013 -0400
description:
Cache is now cleared when Geeklog goes from single language to multi language site
diffstat:
system/lib-template.php | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diffs (16 lines):
diff -r 2e77698479c9 -r d2185e02e82d system/lib-template.php
--- a/system/lib-template.php Sat Jul 13 13:31:09 2013 -0400
+++ b/system/lib-template.php Sat Jul 13 13:32:01 2013 -0400
@@ -126,9 +126,11 @@
{
global $_TABLES, $_CONF;
- if ($group == 'Core' AND (in_array('cache_templates', $changes) OR in_array('template_comments', $changes))) {
+ if ($group == 'Core' AND (in_array('cache_templates', $changes) OR in_array('template_comments', $changes)
+ OR in_array('language', $changes) OR in_array('language_files', $changes) OR in_array('languages', $changes))) {
// If template comments disabled or enabled clear all cached templates
// To be safe clear cache on enabling and disabling of cache
+ // Also clear on config language chages since some cache instances may get messed up going from a single language to multi lanugage setup
CTL_clearCache();
} elseif ($group == 'Core' AND (in_array('sortmethod', $changes) OR
in_array('showstorycount', $changes) OR
More information about the geeklog-cvs
mailing list