# Where is my fragment cache?

**URL:** <https://www.ruby-forum.com/t/where-is-my-fragment-cache/176351>\
**Category:** Rails\
**Created:** [September 29, 2009, 12:49pm UTC](https://www.ruby-forum.com/t/where-is-my-fragment-cache/176351 "2009-09-29T12:49:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![zaczheng](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/z/edb3f5/32.png) [@zaczheng](https://www.ruby-forum.com/u/zaczheng)\
**Post date:** [September 29, 2009, 12:49pm UTC](https://www.ruby-forum.com/t/where-is-my-fragment-cache/176351/1 "2009-09-29T12:49:15Z")

</div>

I have been tearing my hair out trying to locate my fragment cache  
files. For some reason they have recently disappeared. Let me explain.

I am using:  
Rails 2.3.4  
Ruby 1.8.7  
Ubuntu 9.04

I have set my cache to file\_store with:  
config.cache\_store = :file\_store, “#{RAILS\_ROOT}/tmp/cache”

Checking it in console confirms this:  
ActionController::Base.cache\_store  
=\> #\<ActiveSupport::Cache::FileStore:0xb6fc045c  
@cache\_path="/home/zac/apps/app\_name/trunk/tmp/cache"\>

However, and frustratingly, I am now seeing any cache files in  
tmp/cache. They were appearing fine a few months ago. Has there been a  
recently change?

I don’t see cache when running in production mode locally. Cache is  
switched on:  
config.action\_controller.perform\_caching = true

I don’t see ‘fragment cache hit’ messages in server log. The section  
that is supposed to be cached gets rendered as if no caching is in  
place.

I am caching like so(in haml):

- cache :key =\> “homepage” do  
…

I am also not seeing it on my remote server with mod\_rails.

I have tried everything and nothing works. Can anyone shed some light on  
my plight?

---

<div class="post-metadata">

**Author:** ![zaczheng](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/z/edb3f5/32.png) [@zaczheng](https://www.ruby-forum.com/u/zaczheng)\
**Post date:** [September 29, 2009, 2:09pm UTC](https://www.ruby-forum.com/t/where-is-my-fragment-cache/176351/2 "2009-09-29T14:09:06Z")

</div>

This is working now.

It isn’t creating cache files when the server is run locally, but does  
on the remote server. Hurray!

---

<div class="post-metadata">

**Author:** ![zaczheng](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/z/edb3f5/32.png) [@zaczheng](https://www.ruby-forum.com/u/zaczheng)\
**Post date:** [September 29, 2009, 2:11pm UTC](https://www.ruby-forum.com/t/where-is-my-fragment-cache/176351/3 "2009-09-29T14:11:14Z")

</div>

Zac Z. wrote:

> This is working now.
> 
> It isn’t creating cache files when the server is run locally, but does  
> on the remote server. Hurray!

The fragment cache files are invisible, i.e: they have a dot in front of  
them.
