Forum: Ruby on Rails Caching question

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
0ce4db5e1083663c575158643313852c?d=identicon&s=25 Perry Smith (pedzsan)
on 2009-05-16 01:22
I have a strange set up where my Rails app is essentially a front end
for a legacy system.  When I request comes in, the Rails application
asks the legacy system "is the data I have cached up to date?"  If it is
not, then I fetch a fresh copy and in that case, I would have to redraw
the page.

But in the case that my cache is up to date and I already have page or
an action or a fragment cached, I'd like to use what has been cached.

So, would it work to use action or fragment caching, and if I update the
database during the early part of the request, I delete the action or
fragment that has been cached and continue on; otherwise I do not do the
delete and if it has been cached, it will work normally?

Thanks,
pedz
This topic is locked and can not be replied to.