Often enough output of PHP scripts can remain static for an extended period of time. In these cases, certain actions can be eliminated, resulting in a faster script execution.

Pre-generation
When the content changes, generate static versions of the affected pages, taking PHP out of the equation completely.

On demand
Same as pre-generation, only the content is not generated until the 1st request for the specified content arrives.