2010060101.php 336 B

1234567891011121314151617
  1. <?php
  2. /**
  3. * Clears old simplecache variables out of database
  4. */
  5. $query = "DELETE FROM {$CONFIG->dbprefix}datalists WHERE name LIKE 'simplecache%'";
  6. delete_data($query);
  7. if ($CONFIG->simplecache_enabled) {
  8. datalist_set('simplecache_enabled', 1);
  9. elgg_invalidate_simplecache();
  10. } else {
  11. datalist_set('simplecache_enabled', 0);
  12. }