Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[api] make use memcached in test environment
but make sure not to reuse old caches
- Loading branch information
Showing
2 changed files
with
4 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,2 @@ | ||
# cookies are too small and active record sessions cause too much load | ||
if Rails.env.test? | ||
Rails.application.config.session_store ActionDispatch::Session::CookieStore | ||
else | ||
Rails.application.config.session_store ActionDispatch::Session::CacheStore, :expire_after => 1.day | ||
end | ||
Rails.application.config.session_store ActionDispatch::Session::CacheStore, :expire_after => 1.day |