From c3d0cf509298298159db0ca75a71aa3676c548e5 Mon Sep 17 00:00:00 2001 From: Brett Profitt Date: Sun, 4 Sep 2011 17:15:42 -0700 Subject: Refs #3661. Merged $CONFIG->lastcache fix to master. Fixes #3530. $CONFIG->lastcache has correct value on page load when cache is regenerated. git-svn-id: http://code.elgg.org/elgg/branches/1.7@9204 36083f99-b078-4883-b0ff-0f9b5a30f544 Conflicts: engine/start.php --- engine/start.php | 2 ++ 1 file changed, 2 insertions(+) (limited to 'engine') diff --git a/engine/start.php b/engine/start.php index 713d94cc6..132c060b4 100644 --- a/engine/start.php +++ b/engine/start.php @@ -144,7 +144,9 @@ if (!defined('UPGRADING')) { $lastcached = datalist_get("simplecache_lastcached_$viewtype"); if ($lastupdate == 0 || $lastcached < $lastupdate) { elgg_regenerate_simplecache($viewtype); + $lastcached = datalist_get("simplecache_lastcached_$viewtype"); } + $CONFIG->lastcache = $lastcached; } // System loaded and ready -- cgit v1.2.3