Switch to in memory cache on every OS

This commit is contained in:
morpheus65535 2018-01-15 23:30:41 -05:00
parent 10946b1c38
commit 472980e3b3
1 changed files with 1 additions and 4 deletions

View File

@ -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: