rails/actionpack-page_caching

expire_page doesn't seem to work with controller and action

ianwalter opened this issue · 6 comments

The documentation makes it seem like you can do:

expire_page controller: 'home', action: 'index'

But this doesn't seem to work. The page isn't being expired.
Also, after looking through the tests, it seems only expiring a page with a custom route is tested?

expire_page '/index.html'

I'm also experiencing this issue.

The expire_page method passes an options hash to url_for so it'll look for whatever that generates with the special case of looking for /index plus whatever the default extension is (typically .html).

If this isn't happening then please provide an example.

fxn commented

It's been more than three years here. Please if you can provide a cocrete example to reproduce the problem feel free to open an issue again.