Questions tagged [rack-cache]
19 questions
21
votes
4 answers
Disadvantages to rack-cache vs. Varnish in Heroku cedar stack?
The previous 2 Heroku application stacks came with a Varnish layer which automatically reverse-proxy-cached content based on http headers.
The new Heroku cedar stack doesn't have this Varnish layer. Heroku suggests using rack-cache and memcache…

John Bachir
- 22,495
- 29
- 154
- 227
8
votes
1 answer
Heroku Cedar Stack - Rack Cache Headers
I can't figure this out for the life of me. Trying to use Rack::Cache to cache some of my static public pages on Heroku, in addition to doing action caching in case it gets past the reverse proxy.
For example, here's the code in my "home"…

Brandon
- 3,091
- 2
- 34
- 64
7
votes
1 answer
Rails 3.1 and Http Page Caching
Given that Heroku Cedar doesn't have http caching provided by Varnish I would like to use Rack::Cache.
I have been told that rails 3.1.1 have Rack::Cache active by default, I just need to make sure to have in the…

soulnafein
- 1,058
- 1
- 10
- 20
7
votes
1 answer
What is the point of Varnish and Rack-Cache for a Rails app?
I am a bit confused about the purpose of Varnish and Rack-Cache for a Rails app. In config/environments/production.rb caching can be set with something like
config.static_cache_control = "public, max-age=3600"
Given that, what exactly is the purpose…

user782220
- 10,677
- 21
- 72
- 135
6
votes
1 answer
rails rack cache - how to manually clear all the cache
I cached a page via rack-cache, and now the browser never displays the updated page cuz its showing the cached version.
how do I clear all the cache? (Note: I deleted all the cached pages from the rails_app_root/public directory). I even tried…

Varun
- 675
- 6
- 16
4
votes
2 answers
Invalidating individual keys from rack-cache?
Let's say a path on my rails app got stuck in rack cache. Is there a way to say: "/games/zelda" should be removed/invalidated from rack-cache?

user3384741
- 1,261
- 3
- 16
- 21
4
votes
0 answers
Difference between Rack::Cache and page caching
We are currently updating our sites at work, and I am responsible for choosing/designing our caching strategy.
Our sites are all article based magazine sites, however some of them have a user system for restricted articles that needs…

jokklan
- 3,520
- 17
- 37
4
votes
0 answers
Rack-Cache: "stale, valid, store"
I use in my rails app a page caching solution along with an expire_at statement.
My page is good for 1 hour and then needs to be redone.
For some reason the first hour when my rails server start its served "fresh" and then when it becomes style…

schone
- 562
- 4
- 13
3
votes
1 answer
Could not find rack-cache-1.0.3 in any of the sources
I have created a very basic Rails 3.1 app, deployed to a box that runs Ruby 1.8.7 (P334) (I can't easily go to 1.9.2. there unfortunately).
After deploying and running 'bundle install' I tried to run a console:
bundle exec rails console
And I…

patschiboy
- 1,091
- 8
- 21
3
votes
0 answers
Rack::Cache not busting cache after changed etag
I have setup Rack::Cache to work with my rails application, heroku, Dalli and memcachd. Everything works as expected however when I update my content in the backend of my site the cache is still fresh. The etag is changed however this does not seem…

Stewart
- 3,023
- 2
- 24
- 40
3
votes
1 answer
Rails 3.2 Rack::Cache HTTP Headers and Action Caching
Good afternoon,
I've run into some issues trying to combine HTTP caching with Rack::Cache and action caching (on my Heroku-hosted app).
Using them individually, it seems to be working. With action caching enabled, the page loading is snappy, and…

Brandon
- 3,091
- 2
- 34
- 64
2
votes
0 answers
Is my Rack::Cache misconfigured?
I'm caching the most visited page on my Rails app using HTTP caching and etags.
This is reliant on Rack::Cache, and I recently discovered I'm not explicitly setting the storage configuration for Rack::Cache anywhere in my config files or…

DelPiero
- 489
- 1
- 10
- 21
1
vote
1 answer
Poor performance with Rack::Cache
I have Rack::Cache set up as the very top (last) middleware in my stack. My app is hosted on heroku cedar, so Rack::Cache is responsible for static assets as well.
It's backed by the heroku memcached product, and configured like…

John Bachir
- 22,495
- 29
- 154
- 227
1
vote
2 answers
Rails/Dragonfly/Apache - Rack::Cache - how to use X-Sendfile?
I'm using Dragonfly to serve processed images for my Rails app. Dragonfly relies on Rack::Cache for future visits to those processed images, so that Dragonfly won't have to process those images again and again, thus wasting CPU time.
My problem…

Ramon Tayag
- 15,224
- 9
- 43
- 69
1
vote
1 answer
Ignore googlebot for Rack::Cache?
I'm using Rack::Cache, and google search bot triggers all my cache misses, so my cache is always full of pages that don't actually represent the most popular ones on my site, I can't seem to find how to ignore an IP or useragent for caching, has…

JP Silvashy
- 46,977
- 48
- 149
- 227