aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/upgrades/2010060101.php
diff options
context:
space:
mode:
Diffstat (limited to 'engine/lib/upgrades/2010060101.php')
-rw-r--r--engine/lib/upgrades/2010060101.php16
1 files changed, 16 insertions, 0 deletions
diff --git a/engine/lib/upgrades/2010060101.php b/engine/lib/upgrades/2010060101.php
new file mode 100644
index 000000000..bb7f7c1a6
--- /dev/null
+++ b/engine/lib/upgrades/2010060101.php
@@ -0,0 +1,16 @@
+<?php
+
+/**
+ * Clears old simplecache variables out of database
+ */
+
+$query = "DELETE FROM {$CONFIG->dbprefix}datalists WHERE name LIKE 'simplecache%'";
+
+delete_data($query);
+
+if ($CONFIG->simplecache_enabled) {
+ datalist_set('simplecache_enabled', 1);
+ elgg_regenerate_simplecache();
+} else {
+ datalist_set('simplecache_enabled', 0);
+}