Commit c52faefa authored by Pierre Dittgen's avatar Pierre Dittgen

Set ttlcache maxsize parameter to reasonable values

parent a9dbd73e
...@@ -15,12 +15,12 @@ from cachetools.func import ttl_cache ...@@ -15,12 +15,12 @@ from cachetools.func import ttl_cache
from . import config from . import config
@ttl_cache(maxsize=20*1024, ttl=5*60) @ttl_cache(maxsize=50, ttl=5*60)
def download_with_cache(url): def download_with_cache(url):
return requests.get(url) return requests.get(url)
@ttl_cache(maxsize=20*1024, ttl=5*60) @ttl_cache(maxsize=24, ttl=5*60)
def schema_from_url(url): def schema_from_url(url):
return tableschema.Schema(url) return tableschema.Schema(url)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment