Nginx has a proxy cache function, which can automatically cache content generated by backends such as Tomcat as static pages, and the expiration time can be set. You can also automatically clear these static caches on the Java side.
Here we take Nginx’s fastcgi cache as an example and use PHP to manually delete the cache:
Nginx has a proxy cache function, which can automatically cache content generated by backends such as Tomcat as static pages, and the expiration time can be set. You can also automatically clear these static caches on the Java side.
Here we take Nginx’s fastcgi cache as an example and use PHP to manually delete the cache: