Files
openfoodnetwork/spec/lib/reports
Maikel Linke 5db8cb452e Leverage Rails' caching when checking for admin
The privileges of a user should never change within a request
life cycle. The `spree_roles` association is very small, between 0 and 2
items are quickly searched in memory without the need of additional
database queries.

From memory, I've seen a lot of spree_roles queries in log files per
request. This should reduce it to one.
2024-12-19 10:12:31 +11:00
..
2024-07-03 10:17:49 +10:00
2024-11-15 11:09:56 +01:00
2024-07-03 10:17:49 +10:00
2024-05-09 12:24:41 +10:00