]> 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)
committerFridolin Somers <fridolin.somers@biblibre.com>
Tue, 12 Mar 2024 10:55:23 +0000 (11:55 +0100)
commit222777ba98962b2fcd3433af78bd13bfd90c0620
tree9805f8590e4cdcdc19cc13332e9a76ed46a1a0f4
parente0f35d65e240590a02a46f9dcee3684716254e33
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>
Koha/Template/Plugin/Koha.pm