Is memcache store from a cron task in heroku different from memcache store in web server
I think everything is in the topic title:
I have an application on h开发者_如何转开发eroku. This application has a rake cron task. In this task, I want to store some values into cache.
I cache using : Rails.cache.write(key, value). I use md5 digest to generate the key.
Now, in my regular controllers, if i call the EXACT same key with Rails.cache.fetch/read(key), i'm just not fetching the data (stored during the rake task).
So, I was wondering: the cache stores are differents? If so, how can I create a common store?
Regards,
精彩评论