NEWS:

Uncategorized 24 Jun 2005 01:28 pm

Where the page cache doth lie

So I had some pages I was trying to update, but after making the changes I didn’t see them reflected. Just basic html layout stuff. I was sharp enough to remember I’d played with page caching the night before:

caches_page :signup, :login

I’d enabled caching in development mode by adding this to the end of environment.rb:

ActionController::Base.perform_caching = true

I switched that back to false and restarted the server, but the pages were still not updating. I figured they must be written out somewhere, but I couldn’t find where the default path was.

I looked in the action controller docs and read all about action caching, page caching and so forth, but didn’t see anything that pointed to why I couldn’t get my pages updated.

Finally, a while later I was syncing up with subversion and noticed a couple additional files under public:

  • public/login.html
  • public/signup.html

Doh! Gee, I guess that makes sense….

update:

here’s the docs

Comments are closed.