[Koha-bugs] [Bug 15562] Make Koha more suitable for shared hosting with plack

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Sep 16 01:20:29 CEST 2016


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15562

--- Comment #49 from Srdjan Jankovic <srdjan at catalyst.net.nz> ---
(In reply to Jonathan Druart from comment #48)

> Did you notice that Koha::Caches->get_instance could take a subnamespace
> parameter?
> Currently we have 3 different subnamespaces: the default one (""), syspref
> and config.

I did not see "syspref", just config, and removed it. I obviously didn't
understand namespace/subnamespace thing. The pain that I'm trying to relief is
using the same code container for multiple installations. I take that
Koha::Caches is no different in that respect, it just hints that in the future
we may support variety of ways different things can be cached. As it stands
now, subnamespace only creates/uses a new instance of Koha::Cache that is same
as the default one with different namespace.
I'll put it back, but just out of curiosity, there was a params hash to
instantiate Koha::Cache already, why did we push subnamespaces into a separate
one?
> 
> Just looking at the code, I'd say it introduces a regressions: if the
> memcached configuration (defined in koha-conf.xml) is different than the
> default one (localhost:11211) it won't be used.

I'll have a another look. The intention was to prefer ENV to koha-conf.xml.

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


More information about the Koha-bugs mailing list