Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
synapse
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Monitor
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Maunium
synapse
Commits
d7d8a2e7
Commit
d7d8a2e7
authored
4 years ago
by
Erik Johnston
Browse files
Options
Downloads
Patches
Plain Diff
Fix up comments
parent
4ba55559
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
docs/sample_config.yaml
+1
-1
1 addition, 1 deletion
docs/sample_config.yaml
synapse/config/cache.py
+2
-2
2 additions, 2 deletions
synapse/config/cache.py
with
3 additions
and
3 deletions
docs/sample_config.yaml
+
1
−
1
View file @
d7d8a2e7
...
@@ -647,7 +647,7 @@ caches:
...
@@ -647,7 +647,7 @@ caches:
# alphanumeric or underscores. These caches can be named with or
# alphanumeric or underscores. These caches can be named with or
# without the special characters stripped. For example, to specify
# without the special characters stripped. For example, to specify
# the cache factor for `*stateGroupCache*` via an environment
# the cache factor for `*stateGroupCache*` via an environment
# variable would be `SYNAPSE_CACHE_FACTOR_STATEGROUPCACHE=2`.
# variable would be `SYNAPSE_CACHE_FACTOR_STATEGROUPCACHE=2
.0
`.
#
#
per_cache_factors
:
per_cache_factors
:
#get_users_who_share_room_with_user: 2.0
#get_users_who_share_room_with_user: 2.0
...
...
This diff is collapsed.
Click to expand it.
synapse/config/cache.py
+
2
−
2
View file @
d7d8a2e7
...
@@ -46,7 +46,7 @@ def _canonicalise_cache_name(cache_name: str) -> str:
...
@@ -46,7 +46,7 @@ def _canonicalise_cache_name(cache_name: str) -> str:
Since we specify cache names in config and environment variables we need to
Since we specify cache names in config and environment variables we need to
ignore case and special characters. For example, some caches have asterisks
ignore case and special characters. For example, some caches have asterisks
in their name to d
ona
te that they
'
re not attached to a particular database
in their name to d
eno
te that they
'
re not attached to a particular database
function, and these asterisks need to be stripped out
function, and these asterisks need to be stripped out
"""
"""
...
@@ -130,7 +130,7 @@ class CacheConfig(Config):
...
@@ -130,7 +130,7 @@ class CacheConfig(Config):
# alphanumeric or underscores. These caches can be named with or
# alphanumeric or underscores. These caches can be named with or
# without the special characters stripped. For example, to specify
# without the special characters stripped. For example, to specify
# the cache factor for `*stateGroupCache*` via an environment
# the cache factor for `*stateGroupCache*` via an environment
# variable would be `SYNAPSE_CACHE_FACTOR_STATEGROUPCACHE=2`.
# variable would be `SYNAPSE_CACHE_FACTOR_STATEGROUPCACHE=2
.0
`.
#
#
per_cache_factors:
per_cache_factors:
#get_users_who_share_room_with_user: 2.0
#get_users_who_share_room_with_user: 2.0
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment