| Server IP : 217.160.0.32 / Your IP : 216.73.217.98 Web Server : Apache System : Linux info 3.0 #1337 SMP Tue Jan 01 00:00:00 CEST 2000 all GNU/Linux User : u75532419 ( 2865557) PHP Version : 8.2.32 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /lib/php8.2/test/Cache_Lite/tests/ |
Upload File : |
--TEST--
Cache_Lite::Cache_Lite_Output (classical)
--INI--
track_errors=Off
--FILE--
<?php
require_once __DIR__ . '/callcache.inc';
require_once __DIR__ . '/tmpdir.inc';
require_once __DIR__ . '/cache_lite_output_base.inc';
$options = array(
'cacheDir' => tmpDir() . '/',
'lifeTime' => 60
);
$Cache_Lite_Output = new Cache_Lite_Output($options);
multipleCallCache2();
?>
--GET--
--POST--
--EXPECT--
==> First call (cache should be missed)
0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789Cache Missed !
Done !
==> Second call (cache should be hit)
0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789Cache Hit !
Done !
==> Third call (cache should be hit)
0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789Cache Hit !
Done !
==> We remove cache
Done !
==> Fourth call (cache should be missed)
0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789Cache Missed !
Done !
==> #5 Call with another id (cache should be missed)
0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789Cache Missed !
Done !
==> We remove cache
Done !