diff options
author | David Rothstein <drothstein@gmail.com> | 2016-02-01 23:35:16 -0500 |
---|---|---|
committer | David Rothstein <drothstein@gmail.com> | 2016-02-01 23:35:16 -0500 |
commit | e6e00e8444caa3dce647ce46b01256084ce2048c (patch) | |
tree | a6934f13afc88567127a3b2604dc2a1ef1809d2e /modules/system/tests/system_cron_test.module | |
parent | 11e18568f951cb431b0e0e6514767f2516e0d75b (diff) | |
download | brdo-e6e00e8444caa3dce647ce46b01256084ce2048c.tar.gz brdo-e6e00e8444caa3dce647ce46b01256084ce2048c.tar.bz2 |
Issue #1191290 by klausi, David_Rothstein, Fabianx: system_cron() should not invoke hook_flush_caches() on every cron run
Diffstat (limited to 'modules/system/tests/system_cron_test.module')
-rw-r--r-- | modules/system/tests/system_cron_test.module | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/modules/system/tests/system_cron_test.module b/modules/system/tests/system_cron_test.module new file mode 100644 index 000000000..9ef80e231 --- /dev/null +++ b/modules/system/tests/system_cron_test.module @@ -0,0 +1,15 @@ +<?php + +/** + * @file + * Helper module for CronRunTestCase::testCronCacheExpiration(). + */ + +/** + * Implements hook_flush_caches(). + */ +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(); +} |