Skip to content

Commit

Permalink
Remove hardcache cache.
Browse files Browse the repository at this point in the history
  • Loading branch information
dellis23 committed Oct 12, 2016
1 parent da54902 commit 8b31ebc
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions r2/r2/lib/app_globals.py
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,6 @@ class Globals(object):
'stalecaches',
'lockcaches',
'permacache_memcaches',
'hardcache_memcaches',
'cassandra_seeds',
'automatic_reddits',
'hardcache_categories',
Expand Down Expand Up @@ -752,15 +751,6 @@ def setup(self):
else:
stalecaches = None

# hardcache memcache pool
hardcache_memcaches = CMemcache(
"hardcache",
self.hardcache_memcaches,
binary=True,
min_compress_len=1400,
num_clients=num_mc_clients,
)

self.startup_timer.intermediate("memcache")

################# MCROUTER
Expand Down Expand Up @@ -916,7 +906,7 @@ def setup(self):
# hardcache is used for various things that tend to expire
# TODO: replace hardcache w/ cassandra stuff
self.hardcache = HardcacheChain(
(localcache_cls(), hardcache_memcaches, HardCache(self)),
(localcache_cls(), HardCache(self)),
cache_negative_results=True,
)
cache_chains.update(hardcache=self.hardcache)
Expand Down

0 comments on commit 8b31ebc

Please sign in to comment.