aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/upgrades/2010060101.php
blob: 7772c42eb9dd4811050ca9352250f7c6dd1de88b (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_view_regenerate_simplecache();
} else {
	datalist_set('simplecache_enabled', 0);
}