-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Centralized CMS caching 1 #1830
Merged
Merged
Changes from 14 commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
9888dbc
just enough of the cms caching pr to prove that redis is working
anthonyshull 28573c9
fix mix lock
anthonyshull 0ffc3a0
test that logger is working for endpoints
anthonyshull 301f3d2
convert to test cache
anthonyshull fa35d5a
set log level to notice
anthonyshull 412b6b4
catch redis connection error and log
anthonyshull e50422a
PR feedback
anthonyshull 079430b
empty line
anthonyshull ed51554
make test that redis disconnect is logged
anthonyshull ee57312
Merge branch 'master' into ags/centralized-cms-caching-1
anthonyshull bafd92c
default on basic auth for testing
anthonyshull b936016
Merge branch 'master' into ags/centralized-cms-caching-1
anthonyshull b9232a7
force ssl
anthonyshull 531497c
try to go through api
anthonyshull 5e3c8ca
missing dep
anthonyshull a8d4cd4
reset router info
anthonyshull ad28094
just slap those creds in there
anthonyshull a61c4de
runtime config issue for prod
anthonyshull 7665ad4
log basic auth so we can make sure what we are getting from drupal
anthonyshull c599d93
more deployment checking changes
anthonyshull 483fd38
hard code redis host to see if connection works
anthonyshull 7ad1c26
remove hard coded redis host
anthonyshull File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
defmodule CMS.Cache do | ||
use Nebulex.Cache, | ||
otp_app: :cms, | ||
adapter: NebulexRedisAdapter | ||
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
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,4 +1,4 @@ | ||
use Mix.Config | ||
import Config | ||
|
||
# For development, we disable any cache and enable | ||
# debugging and code reloading. | ||
|
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
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,15 @@ | ||
import Config | ||
|
||
config :cms, CMS.Cache, | ||
conn_opts: [ | ||
host: System.get_env("REDIS_HOST", "127.0.0.1"), | ||
anthonyshull marked this conversation as resolved.
Show resolved
Hide resolved
|
||
port: 6379 | ||
], | ||
stats: false, | ||
telemetry: false | ||
|
||
config :site, SiteWeb.Router, | ||
cms_basic_auth: [ | ||
username: System.get_env("CMS_BASIC_AUTH_USERNAME", "username"), | ||
anthonyshull marked this conversation as resolved.
Show resolved
Hide resolved
|
||
password: System.get_env("CMS_BASIC_AUTH_PASSWORD", "password") | ||
] |
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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These are the only two new deps. Everything else is just alphabetization.