1234567891011121314151617 |
- <?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_invalidate_simplecache();
- } else {
- datalist_set('simplecache_enabled', 0);
- }
|