Rails fragment caching not working locally -


i've added following @ top of index.html.haml:

- cache    content 

and far can see, content not cached. server output shows when reload page, still fetches info database again.

i haven't tried on live don't want push before it's 100% working. doing wrong? not understanding how it's supposed work? i've set config.action_controller.perform_caching = true.

cache_store configures cache store use rails caching need specify that

you need set cache store in general config.

config.cache_store = xyz,abc       # put  

options can set:

 :memory_store, :file_store, :mem_cache_store 

Comments

Popular posts from this blog

twig - Using Twigbridge in a Laravel 5.1 Package -

firemonkey - How do I make a beep sound in Android using Delphi and the API? -

jdbc - Not able to establish database connection in eclipse -