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

powershell Start-Process exit code -1073741502 when used with Credential from a windows service environment -

twig - Using Twigbridge in a Laravel 5.1 Package -

c# - LINQ join Entities from HashSet's, Join vs Dictionary vs HashSet performance -