PhantomJS caching. Where it is stored?

孤街浪徒 提交于 2019-12-10 15:16:31

问题


I am using PhantomJS to parse some sites. Given a URL, I parse it and then I start other instances to parse related URLs (same host/domain). I see that the time of loading the page is quite big, so I was digging into the --disk-cache option.

My question is:

Where is that cache stored? I am launching my PhantomJS instances from a Rails app in Heroku, and I would like to know where is that cache stored (which directory).


回答1:


Check on below path : Linux : ~/.qws/cache/Ofi Labs/PhantomJS

Windows : AppData\Local\Ofi Labs\PhantomJS\cache

Files with extension '.d' have the cached items.




回答2:


On Mac OS X, the default path is ~/Library/Caches/Ofi Labs/PhantomJS.




回答3:


The linux path is now usually ~/.local/share/Ofi\ Labs/PhantomJS/



来源:https://stackoverflow.com/questions/24192058/phantomjs-caching-where-it-is-stored

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!