]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Refs #3661. Merged $CONFIG->lastcache fix to master.
authorBrett Profitt <brett.profitt@gmail.com>
Mon, 5 Sep 2011 00:15:42 +0000 (17:15 -0700)
committerBrett Profitt <brett.profitt@gmail.com>
Mon, 5 Sep 2011 00:15:42 +0000 (17:15 -0700)
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

index 713d94cc61e9e4b71bce5db9c1ee82bd2712b726..132c060b4d17f210003b27c43179f46d3cbf3a26 100644 (file)
@@ -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