aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/upgrades/2010060101.php
blob: bb7f7c1a6f952176c61058406841cffa0940d87e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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);
}