Fragment Cache Wackiness

I can’t seem to get the fragment cache to use :file_store. I’d really
appreciate it if someone could point me in the right direction.

Rails 1.1 final, FreeBSD


In environment.rb AND production.rb (for good measure, DRY be damned):

ActionController::Base.fragment_cache_store = :file_store,

At the console prompt:

Loading production environment.

=> #<ActionController::Caching::Fragments::FileStore:0x8f81bac

In a controller:

class ExportController < ApplicationController
before_filter :locale_finder
caches_action :rss, :opml, :top10opml

Yet tmp/fragmentcache/ remains empty (and removing the directory or
making it unwritable produces no errors in production.log)

I can tell by response times and watching production.log that it IS
caching, so I can only assume it’s still using the default in-memory

A potential wild-card is that I am using this plugin:

So I tested without it. Same results.

Any ideas?



The rdoc says:
ActionController::Base.fragment_cache_store = :file_store,

but, Agile…Rails says:

ActionController::Base.fragment_cache_store =

I can confirm the Agile syntax works-- is this just a documentation bug?


This is what I have in my environment.rb, within the

config.action_controller.fragment_cache_store = :file_store,

It worked with 1.0. I think it works with 1.1, but haven’t confirmed.


This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs