Forum: Ruby on Rails can I expire a cached page using a regex?

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.
Charlie B. (Guest)
on 2006-04-10 19:56
(Received via mailing list)
I'm trying to expire all pages under my view action.  These could
be /controller/view/1 or /controller/view/1/2

how can I expire all pages under /controller/view/?  There must be a
way, but I'm stumped.  Here's my broken attempt.  Thanks in advance for
any help,suggestions, or directions to a how to page.

expire_action(:controller =>  '/pragmatic',
                    :action     =>  'view',
                    :id         =>  %r{\d*},
                    :page    =>    %r{\d*})
Charlie B. (Guest)
on 2006-04-10 21:44
(Received via mailing list)
Still no luck here.  I've also tried this but all it did was expire the
view.html page
expire_action(:controller =>  '/pragmatic',
                    :action     =>  'view')
Brian H. (Guest)
on 2006-04-10 22:15
(Received via mailing list)
I'm interested in this as well... however for right now, I've taken this
approach and modified it to suit my needs:
Charlie B. (Guest)
on 2006-04-10 22:34
(Received via mailing list)
Thanks, it seems that is the route I'll go untill I figure out how to
just delete specific files under the public/controller/action directory.
This topic is locked and can not be replied to.