caching - Rails cache from the console returning nothing nil -


i unable see in cache console in either development or production.

for development, have turned on caching , set memory store, in production use dalli gem , memcachier on heroku.

every key try comes nil.

however, in development, if put in binding.pry before somewhere i'm doing rails.cache.fetch, can rails.cache.read there , see returning, , indeed if so, execution not go in fetch's block.

from console, if try rails.cache.reading same key returned cached result in pry breakpoint console, nothing. seems console has separate cache, if console rails.cache.write("whatever", "blah") , rails.cache.read("whatever"), "blah" in return, expected.

is there way experiment cache running server console?

change cache store: memory store stores in process's memory, every instance of application have separate cache. in particular console won't see set running web application.

you use file store (which stores data in temporary files in tmp) or use dalli store locally - memcached easy run.


Comments

Popular posts from this blog

curl - PHP fsockopen help required -

HTTP/1.0 407 Proxy Authentication Required PHP -

c# - Resource not found error -