AUTOM8N icon indicating copy to clipboard operation
AUTOM8N copied to clipboard

Feature Request - Purge Cache Option

Open brixly opened this issue 5 years ago • 1 comments
trafficstars

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

brixly avatar Mar 09 '20 12:03 brixly

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

AnoopAlias avatar Mar 09 '20 13:03 AnoopAlias