Questions tagged [action-caching]
21 questions
1
vote
1 answer
Rails 4: How to uninstall "actionpack-page_caching" and clear cache in production
I tried using the 'actionpack-page_caching' gem to serve up static html pages on Heroku and discovered Heroku doesn't support it or at least makes it a little more difficult. The gem was working just fine in development but not in production and now…

BB123
- 215
- 3
- 10
1
vote
1 answer
How to implement page caching or action caching in active admin
We are using active admin in our application. I have massive data etc to be managed. I want to implement page caching/ action caching in active admin and wants to expire fragments on my specific calls. I don't mind showing stale data for some time…

Mohit Jain
- 43,139
- 57
- 169
- 274
1
vote
0 answers
Expire Cache for action caching with custom cache_path
I have implemented the action caching in rails 3.2 with following syntax
caches_action :show, {
:unless => proc {|c|
current_user.present? || @current_member.present? || @is_crawler
}, :cache_path => proc { |controller|
…

xecutioner
- 311
- 3
- 15
0
votes
0 answers
How to run certain task when all other jobs are finished
I have a Rails app and use Jobs/Sidekiq for certain long running tasks and calculations.
I want to renew my menu-navigation if all jobs are done, by invalidating the cache returning the navigation and recalculate the content for that cache again. So…

Jan
- 12,992
- 9
- 53
- 89
0
votes
0 answers
Rails expire cache with ActionController::Caching::Sweeper not sweeping at all
I've a CategoryController action which responds with a complex Category tree (counts containing Products. For better performance I use Memcached. It works: First request 200ms, second request 12ms.
What I try to achieve:
When a product is added to a…

Jan
- 12,992
- 9
- 53
- 89
0
votes
1 answer
caches_action undefined for controller in rails engine
I've a Rails4 app a mounted rails 4 engine MyEngine with a controller MyController
I've defined multiple actions in the controller for caching as follows,
module MyEngine
require 'actionpack/action_caching'
class MyController <…

Praveenram Balachandar
- 1,587
- 1
- 13
- 16