Support » Plugin: Nginx Cache » Cache folder deleted upon cache purge

  • Resolved bloggingcrew



    I have a strange issue, whenever I try to purge the cache the whole cache folder is deleted, not just the cached data. This is leading to issues as each time I will have to create the cache folder again. I have successfully set the cache zone path both in the plugin and in the nginx config. I am setting the cache folder with the correct ownership and either 750 or 755 permission.

    Will you please shed some light on the issue, as it is quite strange?

    Thank you.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Till Krüss


    Yes, that’s how the plugin deletes the cache. Just make sure your PHP/Webserver process can write in /data/nginx or wherever your cache directory is.

    If you’d like to extend the plugin and have it only delete files and folders inside the cache directory, you’re welcome to contribute on GitHub.

    Thread Starter bloggingcrew


    Got it, thank you!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Cache folder deleted upon cache purge’ is closed to new replies.