rails rack cache - how to manually clear all the cache
Asked Answered
T

1

6

I cached a page via rack-cache, and now the browser never displays the updated page cuz its showing the cached version.

how do I clear all the cache? (Note: I deleted all the cached pages from the rails_app_root/public directory). I even tried disabling rack-cache but it still shows the cached version of the page.

any ideas?

Thurston answered 15/4, 2012 at 20:24 Comment(2)
tried it, didn't help. I've also tried Rails.cache.clear, still doesn't work. I've completely removed all Rack::Cache code and caches_page code, but still its showing the old page..i''m really confusedThurston
also, in my routes, map.root is mapped to /public/home, if I go to localhost:3000 it still shows some old cached page, but if I access localhost:3000/public/home it shows a fresh page, any ideas?Thurston
A
0

Try:

in terminal:

rake tmp:cache:clear

or in rails console:

Rails.cache.clear
Afterdinner answered 5/3, 2015 at 11:37 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.