Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cached file cannot be accessed from different contexts #4

Open
mariuswilms opened this issue Oct 21, 2013 · 0 comments
Open

Cached file cannot be accessed from different contexts #4

mariuswilms opened this issue Oct 21, 2013 · 0 comments

Comments

@mariuswilms
Copy link

I'm using the DomainParser via the WhoisParser and am doing whois queries both within web server/request contexts and within a shell script run by a cron job.

When the whois is done first within the web request context the DomainParser creates a cache file with file permissions that wont allow the subsequent shell script runs to get write access to the cached file. This causes the shell script to throw notices because it cannot remove and recreate the (stale) cached file.

My suggestion would be to either allow configuring file permissions for the cache file through both DomainParser and WhoisParser or get rid of the caching to file through the approach I've outlined in RFC and PR #3.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant