diff options
author | Erik Johnston <erikj@jki.re> | 2017-07-04 10:51:21 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-07-04 10:51:21 +0100 |
commit | f92d7416d75466d038dc84a435a68acbb7331aff (patch) | |
tree | 82194d7cbd830ecedab135277c5bf44b23d6a3ef /synapse/util/caches/stream_change_cache.py | |
parent | Merge pull request #2323 from matrix-org/markjh/invite_checks (diff) | |
parent | Update test (diff) | |
download | synapse-f92d7416d75466d038dc84a435a68acbb7331aff.tar.xz |
Merge pull request #2330 from matrix-org/erikj/cache_size_factor
Increase default cache size
Diffstat (limited to 'synapse/util/caches/stream_change_cache.py')
-rw-r--r-- | synapse/util/caches/stream_change_cache.py | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/synapse/util/caches/stream_change_cache.py b/synapse/util/caches/stream_change_cache.py index 609625b322..941d873ab8 100644 --- a/synapse/util/caches/stream_change_cache.py +++ b/synapse/util/caches/stream_change_cache.py @@ -13,20 +13,16 @@ # See the License for the specific language governing permissions and # limitations under the License. -from synapse.util.caches import register_cache +from synapse.util.caches import register_cache, CACHE_SIZE_FACTOR from blist import sorteddict import logging -import os logger = logging.getLogger(__name__) -CACHE_SIZE_FACTOR = float(os.environ.get("SYNAPSE_CACHE_FACTOR", 0.1)) - - class StreamChangeCache(object): """Keeps track of the stream positions of the latest change in a set of entities. |