When using the value indicated in the pull request (#3954) or in the Rails Caching guide (http://guides.rubyonrails.org/caching_with_rails.html#activesupport-cache-nullstore), we get this error:
Could not find cache store adapter for null (cannot load such file -- active_support/cache/null) (RuntimeError)
It works with:
config.cache_store = :null_store
@Dagnan would you mind sending an update to the docs? You can go ahead and push freely to https://github.com/lifo/docrails, it's an open project for Rails docs contributions, thanks!
Hmm https://github.com/Dagnan/docrails/blob/master/guides/source/caching_with_rails.textile is up to date but http://guides.rubyonrails.org/caching_with_rails.html#activesupport-cache-nullstore isn't. I don't understand.
@Dagnan see in the http://edgeguides.rubyonrails.org/
Hm, it has been fixed by this commit, around 1 month ago.
What happens is that the guides reflect the latest stable version, 3.2.3, and this change was made only in master. You can see the edge guides, here, where the change is reflected - these guides are generated from current Rails master.
This change could be backported, if you want to do this particular fix, you can go ahead and send a pull request to Rails for 3-2-stable branch (note: not docrails). Thanks!
What is the file that should be modified in rails/3-2-stable to backport this modification?
I don't unserstand the link between the guides and the rails repo.
@Dagnan here is the caching guide inside the rails repo, branch 3-2-stable. It's under railties/guides/source. In master, it was moved to the top dir, under guides/source.
You can find the same guides in lifo/docrails repository, it's a branch of Rails source code, only for documentation. You can send any doc patches straight to there, directly to master, if your changes are for master - or you can just send a pull request in Rails, if that works better for you. If you want to backport this or any other changes for 3-2, you can't use docrails, so just send a pull request to Rails, and we will gladly apply.
If you have any other doubts, let us know.
Thanks I could not find the path of the caching guide. I'm sending a pull request for the 3-2-stable.