[Koha-bugs] [Bug 16088] Excessive CGI->new() calls hurting cache performace under plack

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon May 9 18:34:25 CEST 2016


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

Jonathan Druart <jonathan.druart at bugs.koha-community.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #49588|0                           |1
        is obsolete|                            |

--- Comment #14 from Jonathan Druart <jonathan.druart at bugs.koha-community.org> ---
Created attachment 51335
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=51335&action=edit
Bug 16088: Use Koha::Cache to cache the language

The goal of this patch is to avoid unecessary flush of the L1 cache on
creating a new CGI object each time C4::Languages::getlanguage is called
without a CGI object.

Test plan:
At the OPAC and the intranet interfaces:
- Clear the cookies of your browser
- Choose a language and browse
- Change the language and browse

Try to use a language which is not defined:
Add &language=es-ES (if es-ES is not translated) to the url, you should
not see the Spanish interface.

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


More information about the Koha-bugs mailing list