Bug 12041 - improve Koha::Cache
authorRobin Sheat <robin@catalyst.net.nz>
Tue, 8 Apr 2014 05:51:01 +0000 (17:51 +1200)
committerTomas Cohen Arazi <tomascohen@gmail.com>
Thu, 19 Jun 2014 16:05:04 +0000 (13:05 -0300)
commite9715c792103a3d043e08b00f1e938a6f5e8ac67
tree99f31e40918c12b436f93d111f274990cc7013f7
parentb264e398401723e05e1f5dff62c426254e7066ec
Bug 12041 - improve Koha::Cache

This makes Koha::Cache behave better by default. It will use memcached
if available to do shared caching, if that's not available it will fall
back to in-memory caching. It also allows for a singleton accessor to
allow a single cache to be shared within a process.

* Added tests to confirm UTF8-cleanness.
* Added minor fixups to stop warnings.

Test plan:
* The t/Cache.t file runs successfully with and without the
  MEMCACHED_SERVERS envvar set (and memcached running in the
  environment.)

Signed-off-by: Brendan Gallagher <brendan@bywatersolutions.com>
Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
C4/External/OverDrive.pm
Koha/Cache.pm
Koha/Cache/Object.pm
Koha/Template/Plugin/Cache.pm
opac/svc/report
svc/report
t/Cache.t