Make Phantomjs use a disk cache for the snapshots
This commit is contained in:
parent
1c0c551d00
commit
cbcff2adee
1 changed files with 1 additions and 0 deletions
|
@ -10,6 +10,7 @@ def render_snapshot(url):
|
||||||
logger.info('Snapshotting url: %s' % url)
|
logger.info('Snapshotting url: %s' % url)
|
||||||
|
|
||||||
out_html = subprocess.check_output(['phantomjs', '--ignore-ssl-errors=yes',
|
out_html = subprocess.check_output(['phantomjs', '--ignore-ssl-errors=yes',
|
||||||
|
'--disk-cache=yes',
|
||||||
'util/phantomjs-runner.js', url])
|
'util/phantomjs-runner.js', url])
|
||||||
|
|
||||||
if not out_html or out_html.strip() == 'Not Found':
|
if not out_html or out_html.strip() == 'Not Found':
|
||||||
|
|
Reference in a new issue