[Koha-bugs] [Bug 11998] Syspref caching issues

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon Mar 14 16:22:44 CET 2016


Jacek Ablewicz <ablewicz at gmail.com> changed:

           What    |Removed                     |Added
  Attachment #49029|0                           |1
        is obsolete|                            |

--- Comment #160 from Jacek Ablewicz <ablewicz at gmail.com> ---
Created attachment 49107
Bug 11998: Add a L1 cache for sysprefs

Accessing to the cache for each call to C4::Context->preference might
have an impact on performances.
To avoid that this patch introduces a L1 cache (simple hashref). It will
be populated by accessing the L2 cache (Koha::Cache).
If a pref is retrieved 10x, the first one will get the value from the L2
cache, then the L1 cache will be check.
To do so we will need to clear the L1 cache every time a page is loaded.

Signed-off-by: Tomas Cohen Arazi <tomascohen at unc.edu.ar>
Signed-off-by: Jacek Ablewicz <abl at biblos.pk.edu.pl>

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

More information about the Koha-bugs mailing list