TangibleInc / template-system

A template system for WordPress with content type loops and conditions
https://docs.loopsandlogic.com/reference/template-system/
8 stars 3 forks source link

Start optional object cache for parsed and preprocessed template posts #132

Closed eliot-akira closed 3 weeks ago

eliot-akira commented 3 weeks ago

This pull request implements an optional object cache for parsed template posts. And in the future possibly other pre-processed and cached data.

It's similar in direction to the previous prototype except:

Status: Working but experimental, needs testing and real-life usage

@GabrielGallagher @titus-toia


Use the Transients API if you need to guarantee that your data will be cached. If persistent caching is configured, then the transients functions will use the wpcache* functions described in this document. However if persistent caching has not been enabled, then the data will instead be cached to the options table.