After updating my WordPress site I had to clear the cache. I’m using Nginx’s Microcache and I really believed that I could flush it be restarting Nginx. However, that didn’t do the trick as I still kept seeing the old WordPress content. What you have to do is to clear the contents of the Nginx cache folder. This can be done by following these steps.
- Find you cache path. It might be set in the variable fastcgi_cache_path. If not, the default seems to be /var/cache/nginx/
- Remove the cache folder by executing the following command rm -rf /var/cache/nginx/
- Restart Nginx to reenable caching
You should explain what kind of “variable” is fastcgi_cache_path (Is it a bash variable?) and how to display it.
I don’t see and nginx folder in /var/vache
I don’t see any nginx folder in /var/cache
Great tutorial, i followed it and very nicely explained.
rm -rf /var/cache/nginx/ if I do this with *
rm -rf /var/cache/nginx/* no need to reenable nginx
Thanks a lot.
I spend a few hours to solve this problem.
Holy god! Thanks Igor!
Dont Forget sudo as nginx user will be diffrent then system user.