Files
grecia/config/initializers
Javi Martín e38c1d637b Cache content cache key on a per-request basis
We do a similar thing with the settings helper, caching settings on a
per-request basis.

Using an instance variable in a helper reduces the amount of times we
need to calculate the cache key during a single request.

Even if Rails caches SQL queries per request, the test suite is faster
with this change, and we get rid of many redundant queries in the logs.
2020-12-15 12:19:41 +01:00
..
2015-07-15 13:32:13 +02:00
2020-06-16 13:47:38 +02:00
2019-04-16 17:28:06 +02:00
2015-07-15 13:32:13 +02:00
2020-12-02 12:13:02 +01:00
2017-04-03 12:30:57 +02:00
2015-07-15 13:32:13 +02:00
2019-04-16 17:28:06 +02:00