Blame | Letzte Änderung | Log anzeigen | RSS feed
--TEST--pearbug513--FILE--<?phprequire_once('callcache.inc');require_once('tmpdir.inc');require_once('cache_lite_base.inc');$options = array('cacheDir' => tmpDir() . '/','lifeTime' => 60,'automaticSerialization' => true);$Cache_Lite = new Cache_Lite($options);multipleCallCache();?>--GET----POST----EXPECT--==> First call (cache should be missed)Cache Missed !0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789Done !==> Second call (cache should be hit)Cache Hit !0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789Done !==> Third call (cache should be hit)Cache Hit !0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789Done !==> We remove cacheDone !==> Fourth call (cache should be missed)Cache Missed !0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789Done !==> #5 Call with another id (cache should be missed)Cache Missed !0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789Done !==> We remove cacheDone !