Files
openfoodnetwork/app/models
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-09-24 10:43:55 +10:00
2023-09-12 23:19:05 +09:00
2024-02-22 10:15:07 +11:00
2023-09-12 23:19:05 +09:00
2024-04-09 10:44:02 +02:00
2024-04-09 10:44:02 +02:00
2024-04-09 10:44:02 +02:00
2024-11-28 13:35:01 +01:00