> I have tried using Cron but it doesn't work with cache and it only works > with a Model's methods. Anyone have a recommendation on how to do this? > Hmm... what type of caching do you use?
I use fragment caching, and each model clears its own cache items whenever it receives an update of data shown in one type of cache or another. The 'show' cache is always invalidated, the other four cached views depend on whether the data for that view was changed or not. Shouldn't be difficult to adapt that to a method called when a model instance is 'deleted and stored', depending on how your caching is setup. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---

