aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/upgrade.php
diff options
context:
space:
mode:
authorcash <cash.costello@gmail.com>2013-04-13 14:10:02 -0400
committercash <cash.costello@gmail.com>2013-04-13 14:10:02 -0400
commit726007e5730f83340ea8ab294a9f5951586f42fc (patch)
tree0843506c2e7e1840a08dc9bf0a05dfeba9f6659e /engine/lib/upgrade.php
parent5dd3d179f43b47231dab5dab5d5d9482a9810ef7 (diff)
downloadelgg-726007e5730f83340ea8ab294a9f5951586f42fc.tar.gz
elgg-726007e5730f83340ea8ab294a9f5951586f42fc.tar.bz2
introduces _elgg_invalidate_query_cache() to dry up the db query cache code
Diffstat (limited to 'engine/lib/upgrade.php')
-rw-r--r--engine/lib/upgrade.php16
1 files changed, 6 insertions, 10 deletions
diff --git a/engine/lib/upgrade.php b/engine/lib/upgrade.php
index d684af862..0cc1e64dc 100644
--- a/engine/lib/upgrade.php
+++ b/engine/lib/upgrade.php
@@ -354,16 +354,12 @@ function _elgg_upgrade_unlock() {
* @access private
*/
function _elgg_upgrade_is_locked() {
- global $CONFIG, $DB_QUERY_CACHE;
-
+ global $CONFIG;
+
$is_locked = count(get_data("show tables like '{$CONFIG->dbprefix}upgrade_lock'"));
-
- // Invalidate query cache
- if ($DB_QUERY_CACHE) {
- /* @var ElggStaticVariableCache $DB_QUERY_CACHE */
- $DB_QUERY_CACHE->clear();
- elgg_log("Query cache invalidated", 'NOTICE');
- }
-
+
+ // @todo why?
+ _elgg_invalidate_query_cache();
+
return $is_locked;
}