views:

51

answers:

1

Hi,

I am unable to figure out where my cached fragments are being stored. What is the default location for fragment caching.

Cached fragment hit: views/listed_products (0.1ms)

I cannot find anything in the rails_root/public or rails_root/tmp/cache dirs

thanks, ash

A: 

It's probably MemoryStore, which is used if tmp/cache does not exist. I can't tell from the current post if it actually exists for you or not.

x1a4
'tmp/cache' exists but nothing in there. So how does one find out?
in that case, just open `script/console`, and `p Rails.cache`, unless you're on an old version of rails.
x1a4