mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
Configure cache stores
rely on RAM caching for devel, and optionally a memcached server in production
This commit is contained in:
parent
e60dc8c09d
commit
7f2346650f
4 changed files with 15 additions and 0 deletions
|
|
@ -12,6 +12,8 @@ Osem::Application.configure do
|
|||
# since you don't have to restart the web server when you make code changes.
|
||||
config.cache_classes = false
|
||||
|
||||
config.cache_store = :memory_store, { size: 64.megabytes }
|
||||
|
||||
# Show full error reports and disable caching
|
||||
config.consider_all_requests_local = true
|
||||
config.action_controller.perform_caching = false
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue