From cbcff2adeeb42222f2529ea3603b6f68935090c4 Mon Sep 17 00:00:00 2001 From: Joseph Schorr Date: Mon, 19 May 2014 13:18:37 -0400 Subject: [PATCH] Make Phantomjs use a disk cache for the snapshots --- util/seo.py | 1 + 1 file changed, 1 insertion(+) diff --git a/util/seo.py b/util/seo.py index 8a88b0e05..b75480661 100644 --- a/util/seo.py +++ b/util/seo.py @@ -10,6 +10,7 @@ def render_snapshot(url): logger.info('Snapshotting url: %s' % url) out_html = subprocess.check_output(['phantomjs', '--ignore-ssl-errors=yes', + '--disk-cache=yes', 'util/phantomjs-runner.js', url]) if not out_html or out_html.strip() == 'Not Found':