aboutsummaryrefslogtreecommitdiff
path: root/engine/start.php
diff options
context:
space:
mode:
authorBrett Profitt <brett.profitt@gmail.com>2011-09-04 17:15:42 -0700
committerBrett Profitt <brett.profitt@gmail.com>2011-09-04 17:15:42 -0700
commitc3d0cf509298298159db0ca75a71aa3676c548e5 (patch)
treed8ae56cc1285497b48830ce9ce2e6d4aeb262eca /engine/start.php
parent4d47ecbb311d556f155ad866bbce358fbfb51218 (diff)
downloadelgg-c3d0cf509298298159db0ca75a71aa3676c548e5.tar.gz
elgg-c3d0cf509298298159db0ca75a71aa3676c548e5.tar.bz2
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
Diffstat (limited to 'engine/start.php')
-rw-r--r--engine/start.php2
1 files changed, 2 insertions, 0 deletions
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