Forum: Ruby on Rails how do i cache this?

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
5d3b058e892ec1e987a60c0b39665581?d=identicon&s=25 mixplate (Guest)
on 2007-06-12 15:19
i have a account controller, where the user can make a post private or

the function that views a public post is in the 'main' controller.

i put cache :view_post in the main controller, but now if the user
changes the setting in the account controller how can i delete the cache
that is located in the main controller?

each cache file is stored in /public/user/name_of_user/ cache file.

so where do i put the expire and with what parameters?

expire (:action => view_post, :user => name_of_user, :id => id of

This topic is locked and can not be replied to.