forked from zammad/zammad
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Maintenance: Add support for memcached (via the 'dalli' gem) as Rails…
… cache store. To activate this, simply specify MEMCACHE_SERVERS=your.server and Zammad will use that as Rails cache store. See also zammad#1601
- Loading branch information
Showing
14 changed files
with
90 additions
and
20 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
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
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,11 +1,11 @@ | ||
rspec:mysql: | ||
stage: test | ||
extends: | ||
- .services_mysql_redis | ||
- .services_mysql_redis_memcached | ||
- .template_rspec | ||
|
||
rspec:mysql:db_reset: | ||
stage: test | ||
extends: | ||
- .services_mysql_redis | ||
- .services_mysql_redis_memcached | ||
- .template_rspec_db_reset |
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,11 +1,11 @@ | ||
rspec:postgresql: | ||
stage: test | ||
extends: | ||
- .services_postgresql_redis | ||
- .services_postgresql_redis_memcached | ||
- .template_rspec | ||
|
||
rspec:postgresql:db_reset: | ||
stage: test | ||
extends: | ||
- .services_postgresql_redis | ||
- .services_postgresql_redis_memcached | ||
- .template_rspec_db_reset |
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,5 +1,5 @@ | ||
unit:mysql: | ||
stage: test | ||
extends: | ||
- .services_mysql_redis | ||
- .services_mysql_redis_memcached | ||
- .template_unit |
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,5 +1,5 @@ | ||
unit:postgresql: | ||
stage: test | ||
extends: | ||
- .services_postgresql_redis | ||
- .services_postgresql_redis_memcached | ||
- .template_unit |
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
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# Copyright (C) 2012-2021 Zammad Foundation, http://zammad-foundation.org/ | ||
|
||
if Rails.application.config.cache_store.first.eql? :mem_cache_store | ||
Rails.logger.info 'Using memcached as Rails cache store.' | ||
else | ||
Rails.logger.info "Using Zammad's file store as Rails cache store." | ||
end |
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# Copyright (C) 2012-2021 Zammad Foundation, http://zammad-foundation.org/ | ||
|
||
if Rails.application.config.websocket_session_store.eql? :redis | ||
Rails.logger.info 'Using Redis as web socket session store.' | ||
else | ||
Rails.logger.info 'Using File as web socket session store.' | ||
end |
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