[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 Jan 29 04:30:17 CET 2016
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15562
--- Comment #2 from Srdjan Jankovic <srdjan at catalyst.net.nz> ---
Created attachment 47421
-->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=47421&action=edit
Multi-host helper for plack installations
Sort of an apocalypse
* C4::Context->new() must be called with at least config file param.
If you want current context, call C4::Context->current().
C4::Context->some_method() will still work as is.
* Koha::Database->new_schema() now takes optional context param.
* C4::Context->set_context() and restore_context() are synched with
database set_schema() and restore_schema().
Created run_within_context() that wraps set_context() and
restore_context() around code.
* Created Koha::Handler::Plack* to facilitate running same code within
different (database) contexts.
* This initial version does not run with memcached turned on. Next patch
will correct that.
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list