A
A
Alexander Arbuzov2015-04-23 12:12:57
Nginx
Alexander Arbuzov, 2015-04-23 12:12:57

How to set the lifetime of a page cached in nginx?

Good afternoon. I have an online store. The output works through nginx. Often there is a problem that people are given a cached copy of the page, and at that moment, for example, a discount on some product starts to work and people are shown a product with the wrong price.
Or how to reset the current cache so that people stop seeing the cached copy?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
H
He11ion, 2015-04-23
@He11ion

We look for a key with the proxy_cache_key format in the proxy_cache_path with the necessary data and delete it. Or use advanced caching methods like varnish

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question