Hi,
This is how it goes, I need to set two cache in redis, one (cache A) is designed to return normal page response and will be expired in 15 minutes, and i will refresh cache A when expired. And the other one (cache B) is designed to be stored in redis permanently, and when the backend is shutdown, nginx will return cache B. Cache B will be refreshed when the backend service is available.
The problem is how can I set two cache in the same location block?
Hi, This is how it goes, I need to set two cache in redis, one (cache A) is designed to return normal page response and will be expired in 15 minutes, and i will refresh cache A when expired. And the other one (cache B) is designed to be stored in redis permanently, and when the backend is shutdown, nginx will return cache B. Cache B will be refreshed when the backend service is available. The problem is how can I set two cache in the same location block?