Skip to content

How to purge nginx cache ?

utagawal edited this page Feb 15, 2023 · 1 revision
  1. First find your Nginx cache path.
  2. 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
  3. Remove the cache folder by executing the following command : rm -rf /var/cache/nginx/tileserver
  4. Restart Nginx to reenable caching : sudo systemctl restart nginx
Clone this wiki locally