Skip to content

Cached file cannot be accessed from different contexts #4

@mariuswilms

Description

@mariuswilms

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions