Skip to content
This repository has been archived by the owner on May 30, 2023. It is now read-only.

Find Out the Exact Cache Folder and Cache File #15163

Closed
jamesliu668 opened this issue Oct 18, 2017 · 1 comment
Closed

Find Out the Exact Cache Folder and Cache File #15163

jamesliu668 opened this issue Oct 18, 2017 · 1 comment
Labels

Comments

@jamesliu668
Copy link

jamesliu668 commented Oct 18, 2017

  1. Which version of PhantomJS are you using? Tip: run phantomjs --version.
    2.1.1

  2. What steps will reproduce the problem?
    1.go to test folder by command cd test
    2.running command phantomjs --disk-cache=true --load-images=false --disk-cache-path=./ simpletest.js
    3.I found data8 folder in test folder.
    4.As by searching on Google, the real cache folder could be data1, data2...dataF. How can I determine which folder will be created to store cache files.

  3. Which operating system are you using?
    Ubuntu and Mac

  4. Did you use binary PhantomJS or did you compile it from source?
    Use binary PhantomJS

  5. Please provide any additional information below.
    My project want to save target page content, as well as resource files such as js, css, etc. I get some solution from here:
    https://stackoverflow.com/questions/11531448/grab-the-resource-contents-in-casperjs-or-phantomjs (in the second solution with cache.js and mimetype.js)
    https://gist.github.com/bshamric/4717583

However, the cache folder is hard-code by data8. As I know, it could be data1 to dataF. Therefore, it will be great to find the exact cache folder programmatically instead of hard-code the folder name.

@stale stale bot added the stale label Dec 26, 2019
@stale
Copy link

stale bot commented Dec 29, 2019

Due to our very limited maintenance capacity, we need to prioritize our development focus on other tasks. Therefore, this issue will be automatically closed (see #15395 for more details). In the future, if we see the need to attend to this issue again, then it will be reopened. Thank you for your contribution!

@stale stale bot closed this as completed Dec 29, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant