[Koha-bugs] [Bug 8089] Use Koha::Cache everywhere

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Jan 23 17:35:45 CET 2013


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=8089

--- Comment #36 from Jared Camins-Esakov <jcamins at cpbibliography.com> ---
(In reply to comment #35)
> So the following test is not more complete?
>   ok($myhash->{'anotherkey'} eq "anothervalue", 'Cache reset properly');

is($myhash->{'anotherkey'}, 'anothervalue', 'Cache reset properly');
would work as well. I used defined because the important issue is that the
value is being set in some way.

> By disabling you mean remove or unset the CACHING_SYSTEM env variable?
> I am not a supporter of sysprefs but is it not a good way to have a quick
> switch?

Right. It's funny you should mention adding a syspref. One of my follow-ups
will be adding a syspref for enabling/disabling caching, and, eventually,
eliminating the need for environment variables at all. One of the reasons I
decided to write Koha::Cache::Object, even though it meant losing CHI, is that
using caching like this means that we could control caching from a syspref or
koha-conf.xml and still be able to cache sysprefs and koha-conf.xml.

You can also disable the syspref cache specifically using
C4::Context->disable_syspref_cache();

> Sorry for all my questions, I am not an expert of cache issues :)

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list