[Koha-bugs] [Bug 26790] Refactor Koha configuration (koha-conf.xml)
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Thu Dec 9 04:40:25 CET 2021
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=26790
--- Comment #17 from David Cook <dcook at prosentient.com.au> ---
I was thinking more today about how this all could work and I'm thinking
something like this:
my $mq_crud_conf = Koha::Config->relative_file('mq_crud.yml');
The "relative" here means relative to $ENV{'KOHA_CONF'} as the configuration
directory.
Now I'm pondering whether we build in L1 and L2 caching into that method or if
we have multiple different methods:
Koha::Config->relative_file()
Koha::Config->relative_file_cached()
It might be a good idea to have multiple methods because sometimes you don't
need to waste time setting up the cache. (For instance, when uploading a
plugin, you might only need "relative_file", but when calling a plugin over X
records in a row you'd definitely want to use "relative_file_cached".)
But curious what other people think.
--
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.
More information about the Koha-bugs
mailing list