RubyFlow The Ruby and Rails community linklog

Debug a Stuck Cache With a Simple Code Change

Partial caching is a great way to get some major page speed improvements without a lot of work. But if you forget a touch: true on one of your associations, or your template dependencies aren’t working right, your cached partials won’t get updated. Rails’ development environment usually runs with caching disabled, so you’ll need a simple way of enabling caching temporarily to investigate and reproduce your caching bugs.

Post a comment

You can use basic HTML markup (e.g. <a>) or Markdown.

As you are not logged in, you will be
directed via GitHub to signup or sign in