Switch to in memory cache on every OS

pull/56/merge
morpheus65535 7 years ago
parent 10946b1c38
commit 472980e3b3

@ -10,10 +10,7 @@ from list_subtitles import *
from utils import *
# configure the cache
if os.name == 'nt':
region.configure('dogpile.cache.memory')
else:
region.configure('dogpile.cache.dbm', arguments={'filename': os.path.join(os.path.dirname(__file__), 'data/cache/cachefile.dbm')})
region.configure('dogpile.cache.memory')
def download_subtitle(path, language, hi, providers, providers_auth):
try:

Loading…
Cancel
Save