Files
openfoodnetwork/app/models/spree
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-05-13 12:55:55 +01:00
2024-06-11 15:17:32 +10:00
2023-09-13 16:45:00 +09:00
2023-09-13 16:45:00 +09:00
2023-09-13 16:45:00 +09:00
2024-06-11 15:17:32 +10:00
2024-12-19 09:02:04 +11:00
2023-09-13 16:45:00 +09:00
2024-08-22 17:41:00 +02:00
2023-08-20 12:33:43 +09:00