Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: 5916d415d0

Fetching latest commit…

Cannot retrieve the latest commit at this time

..
Failed to load latest commit information.
Cache_Lite_File_classical.phpt
Cache_Lite_Function_classical.phpt
Cache_Lite_Function_dontcache.phpt
Cache_Lite_Function_drop.phpt
Cache_Lite_Output_classical.phpt
Cache_Lite_automaticCleaning.phpt
Cache_Lite_classical.phpt
Cache_Lite_error.phpt
Cache_Lite_error2.phpt
Cache_Lite_eternal.phpt
Cache_Lite_fatest.phpt
Cache_Lite_hashed.phpt
Cache_Lite_lifetime.phpt
Cache_Lite_memorycache.phpt
Cache_Lite_serialization.phpt
ErrorDieTest.php
NestedOutputTest.php
bench.php
bench2.php
bench3.php
cache_lite_base.inc
cache_lite_file_base.inc
cache_lite_function_base.inc
cache_lite_output_base.inc
callcache.inc
errordie.php
pearbug13693.phpt
pearbug18192.php
pearbug18328.phpt
pearbug513.phpt
pearbug7618.phpt
readme
tmpdir.inc

readme

Cache_Lite is perfs oriented. So before commiting, please bench your patch !

To bench Cache_Lite, I use the tool 'ab' (distributed with apache).

(for example)
/usr/sbin/ab -c 10 -n 1000 http://127.0.0.1/ [...] /Cache_Lite/tests/bench.php

In the output of 'ab', most important things are :
- Failed requests: (must be 0 ! If not, don't commit !)
- Requests per second:    XXX [#/sec] (mean)


For testing if the cache is ok or not, you can use the script 'test.php', it 
will write if the cache has been hit or missed...


Fabien (fab@php.net)
Something went wrong with that request. Please try again.