-
Notifications
You must be signed in to change notification settings - Fork 6
How to purge nginx cache ?
utagawal edited this page Feb 15, 2023
·
1 revision
- First find your Nginx cache path.
- In our case Nginx cache path was defined in nginx.conf site-enabled file located on
/etc/nginx/sites-enabled
with proxy_cache_path directory to be/var/cache/nginx/tileserver
- Remove the cache folder by executing the following command :
rm -rf /var/cache/nginx/tileserver
- Restart Nginx to reenable caching :
sudo systemctl restart nginx