D
D
Diam0n2013-01-18 17:33:14
Nginx
Diam0n, 2013-01-18 17:33:14

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

2 answer(s)
S
SkyCat, 2013-01-18
@SkyCat

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

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question