Bug 7248 follow-up (alternative)
authorPaul Poulain <paul.poulain@biblibre.com>
Mon, 14 May 2012 15:45:33 +0000 (17:45 +0200)
committerPaul Poulain <paul.poulain@biblibre.com>
Tue, 15 May 2012 16:05:58 +0000 (18:05 +0200)
commit66dbe7dc662f11ae67d1db721a451e9ac77968a9
tree39c53cfbb9f763641e2992e278afc173337a8315
parent03fee7a590ee5c5deb1c997d732c77854a16b0fe
Bug 7248 follow-up (alternative)

This patch introduces some new features for caching system:
* the type of caching is retrieved from ENV variable in httpd configuration if not forced when the ->new() is called.
* if $ENV{DEBUG} is ON, you'll have feedback when something is set or read from cache
* the Koha::Cache->is_cache_active is now available and will return 1 if there is a caching system available. It's a replacement for C4::Context->ismemcached
* fixes the mistake for debug/compress_threshold and expire_time parameters

The 2 report web service modules have been updated to use this new API

Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>
Koha/Cache.pm
Koha/Cache/Memcached.pm
opac/svc/report
svc/report