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

--- Comment #36 from Jared Camins-Esakov <[email protected]> ---
(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.
_______________________________________________
Koha-bugs mailing list
[email protected]
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to