Can anyone tell me how do these two cache work together? How does nginx know what cache to pull from first? what to ignore? or does it pull both? thanks in advance.
The W3-total-cache plugin stores a static version of the pages in a seperate folder structure.
On request for a page there is a check in the site configuration of NGINX to look for the static version first, and if it is not there, deliver the dynamic version.
The fastcgi cache of nginx does cache the answers from the fastcgi script.
So, on a request, the complete lookup order would be:
- NGINX fastcgi cache
- Static version from W3TotalCache
- Dynamic version