http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13758 --- Comment #4 from Tomás Cohen Arazi <tomascohen@gmail.com> --- (In reply to Tomás Cohen Arazi from comment #3)
(In reply to Jonathan Druart from comment #2)
I did not find any time saving using a new package to store the version.
# Without the patch $ more t.pl use Modern::Perl; use C4::Context; say C4::Context->KOHAVERSION;
$ time perl t.pl => 0.150s
# With the patch $ more t.pl use Modern::Perl; use C4::Context; use Koha; say Koha::version;
$ time perl t.pl => 0.150s
To be fair I kept the use of C4::Context, if I remove it I get, of course, ~0.024s
Could you try the opac home page using ntyprof?
BTW, I would simplify getting the Koha version just for the sake of cleaning the code. -- You are receiving this mail because: You are watching all bug changes.