Non-standard usage of nginx server for partially dynamic content
As far as I know nginx could be used for passing static content to user very quickly. My case is a bit complicated. At first request the content is dynamic but on second (same) request the content is static. To say very long story short: On first request I am generating data with PHP script which is saved (cached) in local directory. On next (same) request I want ngnix to pass that content directly to user (without calling PHP script).
I do not want to 'invent the bicycle'. There should be some logic which could solve my problem.
Thanks in advance.