Skip to content

Commit 907a502

Browse files
committed
tcfl.ttb_client._rts_get: disable caching
1 parent 83fe9e5 commit 907a502

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

tcfl/ttb_client.py

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -119,14 +119,15 @@ def tls_var(name, factory, *args, **kwargs):
119119
sslkeylog.set_keylog(os.environ['SSLKEYLOGFILE'])
120120

121121

122-
@commonl.lru_cache_disk(
123-
os.path.join(os.path.expanduser("~"), ".cache", "tcf", "_rts_get"),
124-
3 * 60, # refresh every three minutes? why? because until we
125-
# all move to the second ls implementation, this
126-
# contains power and ownership info that can change
127-
# frequently...
128-
500, # keep max 500 entries (one per server)
129-
key_maker = lambda rtb: rtb._url)
122+
# Caching disable; causes more problems than it fixes
123+
#@commonl.lru_cache_disk(
124+
# os.path.join(os.path.expanduser("~"), ".cache", "tcf", "_rts_get"),
125+
# 3 * 60, # refresh every three minutes? why? because until we
126+
# # all move to the second ls implementation, this
127+
# # contains power and ownership info that can change
128+
# # frequently...
129+
# 500, # keep max 500 entries (one per server)
130+
# key_maker = lambda rtb: rtb._url)
130131
def _rts_get_cached(rtb):
131132
ts0 = time.time()
132133
try:

0 commit comments

Comments
 (0)