cache-digests

Disable cache digests in Rails 4

吃可爱长大的小学妹 提交于 2020-01-15 17:32:04
问题 I'm in the process of migrating a Rails 3 app to Rails 4. The migration was mostly fairly smooth, but one big problem I'm encountering is that my old Rails 3 code to expire my caches isn't working. I'm getting logs like: Expire fragment views/localhost:3000/cardsets/36?action_suffix=edityes (0.0ms) ... Read fragment views/localhost:3000/cardsets/36?action_suffix=edityes/d8034b6e68ba30b5916a2ebb73b68ffe (0.0ms) This turns out to be because Rails 4 brings a new funky kind of caching, cache

Issues using Russian Doll Caching with Template Inheritance

◇◆丶佛笑我妖孽 提交于 2019-12-06 08:15:48
问题 I have been using both Template Inheritance and Russian Doll Caching (using the cache_digests gem) independently of one another in select portions of a fairly complex Rails application, with much success. I am having difficulty using the two technologies together, in a sane way, which makes me suspect that I may be doing something wrong... For an extremely simple example, consider an application consisting of two controllers, ThingOnes and ThingTwos. This application has one layout ( layouts

Issues using Russian Doll Caching with Template Inheritance

Deadly 提交于 2019-12-04 14:07:58
I have been using both Template Inheritance and Russian Doll Caching (using the cache_digests gem ) independently of one another in select portions of a fairly complex Rails application, with much success. I am having difficulty using the two technologies together, in a sane way, which makes me suspect that I may be doing something wrong... For an extremely simple example, consider an application consisting of two controllers, ThingOnes and ThingTwos. This application has one layout ( layouts/application.html.erb ) which simply renders a header file with: <%= render 'header' %> . By default,