Make Phantomjs use a disk cache for the snapshots

This commit is contained in:
Joseph Schorr 2014-05-19 13:18:37 -04:00
parent 1c0c551d00
commit cbcff2adee

View file

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