aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/upgrades/2012012100-1.8.3-system_cache-93100e7d55a24a11.php
diff options
context:
space:
mode:
authorCash Costello <cash.costello@gmail.com>2012-01-21 12:44:55 -0500
committerCash Costello <cash.costello@gmail.com>2012-01-21 12:44:55 -0500
commit19a6962c819dc33a0967dcef56154f6930b52287 (patch)
treef81d3530358a4056caf12a695d0700b0c232a69d /engine/lib/upgrades/2012012100-1.8.3-system_cache-93100e7d55a24a11.php
parent8e4d4c50df3f19be4ad9c204797e57ecd9ba02b3 (diff)
downloadelgg-19a6962c819dc33a0967dcef56154f6930b52287.tar.gz
elgg-19a6962c819dc33a0967dcef56154f6930b52287.tar.bz2
Fixes #4180 finished conversion to system cache by converting datalist/CONFIG var name
Diffstat (limited to 'engine/lib/upgrades/2012012100-1.8.3-system_cache-93100e7d55a24a11.php')
-rw-r--r--engine/lib/upgrades/2012012100-1.8.3-system_cache-93100e7d55a24a11.php13
1 files changed, 13 insertions, 0 deletions
diff --git a/engine/lib/upgrades/2012012100-1.8.3-system_cache-93100e7d55a24a11.php b/engine/lib/upgrades/2012012100-1.8.3-system_cache-93100e7d55a24a11.php
new file mode 100644
index 000000000..3a9aae2a1
--- /dev/null
+++ b/engine/lib/upgrades/2012012100-1.8.3-system_cache-93100e7d55a24a11.php
@@ -0,0 +1,13 @@
+<?php
+/**
+ * Elgg 1.8.3 upgrade 2012012100
+ * system_cache
+ *
+ * Convert viewpath cache to system cache
+ */
+
+$value = datalist_get('viewpath_cache_enabled');
+datalist_set('system_cache_enabled', $value);
+
+$query = "DELETE FROM {$CONFIG->dbprefix}datalists WHERE name='viewpath_cache_enabled'";
+delete_data($query);