s/fill_memcached_cache/fill_remote_cache/g

This commit is contained in:
Ryan Moore
2016-03-30 18:43:22 -07:00
committed by Tim Abbott
parent 18139fd86f
commit 1489f0992c
2 changed files with 5 additions and 5 deletions

View File

@@ -72,7 +72,7 @@ cache_fillers = {
'session': (lambda: Session.objects.all(), session_cache_items, 3600*24*7, 10000),
}
def fill_memcached_cache(cache):
def fill_remote_cache(cache):
remote_cache_time_start = get_remote_cache_time()
remote_cache_requests_start = get_remote_cache_requests()
items_for_remote_cache = {}
@@ -85,6 +85,6 @@ def fill_memcached_cache(cache):
cache_set_many(items_for_remote_cache, timeout=3600*24)
items_for_remote_cache = {}
cache_set_many(items_for_remote_cache, timeout=3600*24*7)
logging.info("Succesfully populated %s cache! Consumed %s memcached queries (%s time)" % \
logging.info("Succesfully populated %s cache! Consumed %s remote cache queries (%s time)" % \
(cache, get_remote_cache_requests() - remote_cache_requests_start,
round(get_remote_cache_time() - remote_cache_time_start, 2)))