You are here

protected function ApdqcCacheTestCase::setupLifetime in Asynchronous Prefetch Database Query Cache 7

Setup minimum lifetime settings for caching.

Parameters

int $time: The minimum time in seconds the cache should live.

2 calls to ApdqcCacheTestCase::setupLifetime()
ApdqcCacheClearCase::testCacheTemporary in ./apdqc.test
Tests CACHE_TEMPORARY behavior.
ApdqcCacheClearCase::testMinimumCacheLifetime in ./apdqc.test
Test minimum cache lifetime.

File

./apdqc.test, line 122
Tests for the Asynchronous Prefetch Database Query Cache module.

Class

ApdqcCacheTestCase
Add new functionality to DrupalWebTestCase.

Code

protected function setupLifetime($time) {
  variable_set('cache_lifetime', $time);
  variable_set('cache_flush', 0);
}