]> git.koha-community.org Git - koha.git/commit
Bug 35955: Cache CSRF token in template plugin
authorDavid Cook <dcook@prosentient.com.au>
Tue, 27 Feb 2024 06:05:24 +0000 (06:05 +0000)
committerLucas Gass <lucas@bywatersolutions.com>
Tue, 19 Mar 2024 21:23:36 +0000 (21:23 +0000)
commit7c9151e8ae04d549f870e2045fa4e726492b687f
tree93e2b5fd9eebaff9873b644a54c2370e3c737623
parenta69ff262bf2fe86bbdecc48eeea7c1e8ba0f6a48
Bug 35955: Cache CSRF token in template plugin

This change uses the Koha::Cache::Memory::Lite cache to
cache the CSRF token, so that it is only generated once,
and is re-used by the Koha::Template::Plugin::Koha object
throughout the entire template processing for the HTTP request.

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit 108c955eac02707ccaa35081fbece1054a5dcda3)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
(cherry picked from commit 222777ba98962b2fcd3433af78bd13bfd90c0620)
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
Koha/Template/Plugin/Koha.pm