aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-03-16 11:14:23 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-03-16 11:14:23 +0000
commit3d3ecfa207a47198fca5658bb6aa6e27cb0f13da (patch)
treeafe6c1819ee59357490ed0b6507ca9c02797c8ce
parent8fb1564ff9c1faab6dd9792ed350abd499f02e4e (diff)
downloadelgg-3d3ecfa207a47198fca5658bb6aa6e27cb0f13da.tar.gz
elgg-3d3ecfa207a47198fca5658bb6aa6e27cb0f13da.tar.bz2
Fixes #3066 moves setting of lastcache value up in boot sequence
git-svn-id: http://code.elgg.org/elgg/trunk@8734 36083f99-b078-4883-b0ff-0f9b5a30f544
-rw-r--r--engine/start.php8
1 files changed, 5 insertions, 3 deletions
diff --git a/engine/start.php b/engine/start.php
index 850fba216..4d8175b60 100644
--- a/engine/start.php
+++ b/engine/start.php
@@ -120,6 +120,11 @@ verify_installation();
// Autodetect some default configuration settings
set_default_config();
+// needs to be set for links in html head
+$viewtype = get_input('view', 'default');
+$lastcached = datalist_get("simplecache_lastcached_$viewtype");
+$CONFIG->lastcache = $lastcached;
+
// Trigger boot events for core. Plugins can't hook
// into this because they haven't been loaded yet.
elgg_trigger_event('boot', 'system');
@@ -135,14 +140,11 @@ elgg_trigger_event('init', 'system');
// Don't do it on upgrade because upgrade does it itself.
// @todo - move into function and perhaps run off init system event
if (!defined('UPGRADING')) {
- $viewtype = get_input('view', 'default');
$lastupdate = datalist_get("simplecache_lastupdate_$viewtype");
$lastcached = datalist_get("simplecache_lastcached_$viewtype");
if ($lastupdate == 0 || $lastcached < $lastupdate) {
elgg_regenerate_simplecache($viewtype);
}
- // needs to be set for links in html head
- $CONFIG->lastcache = $lastcached;
}
// System loaded and ready