sweeper
Rails3 Cache Sweeper for has_and_belongs_to_many association
I have the foll开发者_JAVA百科owing relationships modeled in a Rails3 application: class User < ActiveRecord::Base[详细]
2023-03-26 23:33 分类:问答How can I access named routes in a Rails sweeper?
I have a sweeper that reheats cache by opening urls in forked processes. It\'s easy enough to hard-code the host for those urls, but I want it to change dynamically, based on environment.[详细]
2023-03-07 07:26 分类:问答How does one include a module with cache expirations in sweepers?
We have the following sweeper in a rails application: class AgencyEquipmentTypeSweeper < ActionController::Caching::Sweeper[详细]
2023-02-19 03:49 分类:问答Rails is not deleting a cache/.html page when the sweeper is called
I\'m having some issues with Sweepers and Caching in Rails. The .html file in /cache is开发者_开发问答 being generated on first view.[详细]
2023-02-08 21:04 分类:问答Can Rails sweepers work across different controllers?
I have action caching working on my Sites index, and set up a SiteSweeper that works fine: # app/controllers/admin/sites_controller.rb[详细]
2023-02-01 04:53 分类:问答rails - caches_action expire_action
I want to expire a cached action and wondered how to generate the correct reference. #controller caches_action :index, :layout => false[详细]
2023-01-02 01:56 分类:问答Action caching is not expiring correctly, even when I can see it's being called
I\'ve got a sweeper that\'s supposed to expire a few action caches. Even though the debugger stops immediately before the call to expire_action, it\'s not actually expiring the action. Any idea what c[详细]
2022-12-20 02:26 分类:问答