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

Feature Request - Purge Cache Option #616

Open
brixly opened this issue Mar 9, 2020 · 1 comment
Open

Feature Request - Purge Cache Option #616

brixly opened this issue Mar 9, 2020 · 1 comment
Assignees

Comments

@brixly
Copy link

brixly commented Mar 9, 2020

Many clients have requested a 'purge cache' option, which would need to be applied to both nginx proxy caches and redis cache.

@AnoopAlias
Copy link
Owner

The big issue with Purging the proxy cache or fastcgi cache is that the caches are stored by the nginx worker process that run as nobody and all go in one place and the cPanel UI run as the user ..so the cPanel plugin wont be able to write to or delete the cache. even there is no separation between the files for each domain ..its all some a/b/xxxxxxx files owned by nobody etc. The only real solution is to use the PURGE method https://stackoverflow.com/questions/25857508/what-is-the-http-method-purge and this requires lot of support from application too . Even for the redis cache there is no purge per user unless the plugin nginx helper is used which selectively purge .

As root we can always rm -rf proxycache_dir/* and FLUSHALL/FLUSHDB in redis

Just need to think how to get this done right with such obstructions

@xlightwaverx xlightwaverx self-assigned this Mar 9, 2020
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

3 participants