]> 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)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Fri, 1 Mar 2024 09:55:52 +0000 (10:55 +0100)
commit108c955eac02707ccaa35081fbece1054a5dcda3
tree3272d40b476a2253bfba41f93cb24462be18ac01
parente2440f2c617c48d77cc416857937b6fb18c34208
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>
Koha/Template/Plugin/Koha.pm