What does WP have to offer when it comes to generating dynamic content that rarely changes?
I've created a jQuery backed metabox which implements auto complete and has the option of not allowing users to create new tags. (I want all my tags to be pre thought out and have associated descriptions.)
The tags themselves come from WP's built in functions. So without querying the database, it's difficult to know if tags have been added. Ideally, I'd only like to build the list when a new tag has been added and I'd only like to send them to the browser if absolutely necessary.
I can think of two methods to solve this:
Hook the add new tag actions, build and save an xml file, then have my php script check the version and set the response headers. This introduces file system access issues which I'd like to avoid. Also not quite sure how to handle the version tracking though that isn't really WP related.
Have the jQuery script make the request. The browser should in theory return the local cache if available. Then make a second request for the version and/or any new tags. This seems a little over the top.
Does WP have anything built in to handle this?
If WP doesn't have a cache system built in, perhaps it should. Plugins relying on third party plugins are not an option.