You are here

public static function Cleaner::cleanerCacheClear in Cleaner 7

Cache tables clearing handler.

2 calls to Cleaner::cleanerCacheClear()
cleaner_cleaner_run in ./cleaner.module
Implements hook_cleaner_run().
hook_cleaner_run in ./cleaner.api.php
Cleaner execution hook.

File

./class.Cleaner.php, line 105
Cleaner base class file.

Class

Cleaner
Class Cleaner.

Code

public static function cleanerCacheClear() {
  $list = self::cleanerClearTables(self::cleanerGetCacheTables());
  if (!empty($list)) {

    // Write a log about successful cache clearing into the watchdog.
    self::cleanerLog('Cleared caches by Cleaner. (@list)', array(
      '@list' => implode(', ', $list),
    ));
  }
  else {

    // Write a log about empty list of cache tables into the watchdog.
    self::cleanerLog('There are no cache tables in the database.', array(), WATCHDOG_ERROR);
  }
}