You are here

function system_cron_test_flush_caches in Drupal 7

Implements hook_flush_caches().

1 string reference to 'system_cron_test_flush_caches'
CronRunTestCase::testCronCacheExpiration in modules/system/system.test
Tests that hook_flush_caches() is not invoked on every single cron run.

File

modules/system/tests/system_cron_test.module, line 11
Helper module for CronRunTestCase::testCronCacheExpiration().

Code

function system_cron_test_flush_caches() {

  // Set a variable to indicate that this hook was invoked.
  variable_set('system_cron_test_flush_caches', 1);
  return array();
}