<div dir="ltr"><div>Hello<br></div><div><br></div><div>I am writing a full-page cache module for NGINX. But I ran into some issues, I searched online for a possible solution, but no success.</div><div><br></div><div>What happens is that I need to hook my module in NGX_HTTP_PRECONTENT_PHASE, so that module can make cache related decisions.</div><div><br></div><div>Everything is good, so far caching is working as expected. But the problem starts to happen when I use try_files module to make WordPress permalinks works. I checked the source code of try_files module, and it seems it also hooks into NGX_HTTP_PRECONTENT_PHASE, I can't seem to find a way so that this module runs first and do its rewriting, and then my module gets fired.</div><div><br></div><div>Any pointers are appreciated.<br></div><div><br></div>Thanks.</div>