def _clear_cache(): global cache if not cache: cache = FileSystemCache(CACHE_DIR, CACHE_ENTRY_MAX, 0) return cache.clear()
def _clear_cache(): global cache # pylint: disable=global-statement,invalid-name if not cache: cache = FileSystemCache(CACHE_DIR, CACHE_ENTRY_MAX, 0) return cache.clear()
def gzip_cache(): """Set up a caching system for the gzipped assets""" cache = FileSystemCache(cache_dir='.cache/gzip') cache.clear() return cache