From 472980e3b34f105fb03983c61d6d713fb8ffd8be Mon Sep 17 00:00:00 2001 From: morpheus65535 <5130500+morpheus65535@users.noreply.github.com> Date: Mon, 15 Jan 2018 23:30:41 -0500 Subject: [PATCH] Switch to in memory cache on every OS --- get_subtitle.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/get_subtitle.py b/get_subtitle.py index 2616128d7..6363db819 100644 --- a/get_subtitle.py +++ b/get_subtitle.py @@ -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: