Categories
nginx cache management
Is it possible to reset/refresh the contents of the cache partially? Those. the cache stores an array of data and only needs to update one page without flushing the entire cache.
Answer the question
In order to leave comments, you need to log in
Yes, you can. In the config: fastcgi_cache_bypass $http_x_update; In the script when refreshing the page: curl -s -o /dev/null -H "X-Update: 1" http://www.site.ru/expired_node
fastcgi_cache_bypass $http_x_update;
curl -s -o /dev/null -H "X-Update: 1" http://www.site.ru/expired_node
Didn't find what you were looking for?
Ask a Question
731 491 924 answers to any question