Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PhantomJS caching. Where it is stored?

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).

like image 559
Hommer Smith Avatar asked Jun 12 '14 19:06

Hommer Smith


2 Answers

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.

like image 182
Yogesh Unavane Avatar answered Sep 27 '22 19:09

Yogesh Unavane


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

like image 34
Tony Novak Avatar answered Sep 27 '22 21:09

Tony Novak