user290870
user290870

Reputation: 1601

rails fragment cache store

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

Upvotes: 2

Views: 1583

Answers (2)

Artem P
Artem P

Reputation: 5333

Try out:

Rails.cache.cache_path

Upvotes: 1

x1a4
x1a4

Reputation: 19475

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.

Upvotes: 5

Related Questions