Sunday, 8 September 2013

Ways to clear cache from outside rails 3 application?

Ways to clear cache from outside rails 3 application?

In rails 3, I use caches_page in controllers to cache a whole html page on
the filesystem. I have two different applications (production app and
manager app) connecting to the same database. Suppose I am creating a
report in the manager app. I would like to clear the cached reports/index
view on the production app (running on a different EC2 instance). What is
the best way to do that? Right now, I have the cache expiring every 12
hours but I wonder is there is a neat way to clear the cache upon an
event.

No comments:

Post a Comment