rails caching: expire_action in another namespace

后端 未结 2 1637
悲哀的现实
悲哀的现实 2020-12-08 06:11

My application is using a namespace for administrative purposes. I recently tried to start using action caching however I ran into some problems trying to expire the cache u

2条回答
  •  没有蜡笔的小新
    2020-12-08 06:25

    One additional note I learned, if you want to expire a specific format, such as XML, JSON, etc., just

    expire_action(:controller => '/newsposts', :action => 'index', :format => 'xml') 
    

    or whatever format you want. It look me a while to figure out.

提交回复
热议问题