public function purgeOutdatedArchives() { $archiveTables = ArchiveTableCreator::getTablesArchivesInstalled(); foreach ($archiveTables as $table) { $date = ArchiveTableCreator::getDateFromTableName($table); list($year, $month) = explode('_', $date); // Somehow we may have archive tables created with older dates, prevent exception from being thrown if ($year > 1990) { ArchivePurger::purgeOutdatedArchives(Date::factory("{$year}-{$month}-15")); } } }
public function purgeInvalidatedArchives() { ArchivePurger::purgeInvalidatedArchives(); }