Howto cache via entryproperties?
Posted: Wed Sep 02, 2009 8:08 pm
I don't understand the mechanism of the entryproperties-cache even though the trackexits-plugin should be an example.
In cacheable plugins, install() is used to cache the curretn state and uninstall() to empty the cache. Let's have a plugin using entry_display. If there'd be a useable cache, it should be possible to transform the code executed in the event somehow so it only gets executed from time to time. Like a man in the middle, catching the critical part of the function and returning the old result if the timeout is not over yet - and only if it's over, the expensive operation should be done.
trackexit is using 'frontend_display_cache', but that hook is never caught in the entryproperties-plugin, only executed once. How do they interact, how is it possible to cache the transormations done by a markup-plugin (or the tweet-this-button of the twitter-plugin) via entryproperties?
sincerely
In cacheable plugins, install() is used to cache the curretn state and uninstall() to empty the cache. Let's have a plugin using entry_display. If there'd be a useable cache, it should be possible to transform the code executed in the event somehow so it only gets executed from time to time. Like a man in the middle, catching the critical part of the function and returning the old result if the timeout is not over yet - and only if it's over, the expensive operation should be done.
trackexit is using 'frontend_display_cache', but that hook is never caught in the entryproperties-plugin, only executed once. How do they interact, how is it possible to cache the transormations done by a markup-plugin (or the tweet-this-button of the twitter-plugin) via entryproperties?
sincerely