Created
November 20, 2019 18:02
-
-
Save cordis/5c0e03477946c87053e70b6a3ad7c47e to your computer and use it in GitHub Desktop.
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
>>> from community.models import SiteExtraManager | |
>>> site_id = 18284455 | |
>>> len(SiteExtraManager._cache_extra_get(site_id)) | |
87 | |
>>> | |
>>> from django.conf import settings | |
>>> from pprint import pprint | |
>>> pprint(settings.CACHES) | |
{'default': {'BACKEND': 'rm.memcached.EventletMemcachedCache', | |
'KEY_FUNCTION': 'rm.memcached.make_safe_key', | |
'KEY_PREFIX': '', | |
'LOCATION': ['memcache2:11211', 'memcache4:11211'], | |
'TIMEOUT': 1209600, | |
'VERSION': 2}, | |
'duplicates': {'BACKEND': 'rm.memcached.EventletMemcachedCache', | |
'KEY_FUNCTION': 'rm.memcached.make_safe_key', | |
'KEY_PREFIX': '', | |
'LOCATION': ['memcache2:11211', 'memcache4:11211'], | |
'TIMEOUT': 86400}, | |
'scraper': {'BACKEND': 'rm.memcached.EventletMemcachedCache', | |
'KEY_FUNCTION': 'rm.memcached.make_safe_key', | |
'KEY_PREFIX': '', | |
'LOCATION': ['memcache2:11211', 'memcache4:11211'], | |
'TIMEOUT': 43200}, | |
'session': {'BACKEND': 'rm.memcached.EventletMemcachedCache', | |
'KEY_FUNCTION': 'rm.memcached.make_safe_key', | |
'KEY_PREFIX': '', | |
'LOCATION': ['sessions-prod:11211', 'sessions-prod2:11211'], | |
'VERSION': 2}} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment