rails rack cache - how to manually clear all the cache

2.3k views Asked by At

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?

1

There are 1 answers

0
bondarenko.dev On

Try:

in terminal:

rake tmp:cache:clear

or in rails console:

Rails.cache.clear