Loading...
 
Skip to main content

Features / Usability


Non-Cacheable Plugins

Oh boy what would I give if I could do this for a plugin...

function plugin_name_cacheable (){
return false;
};

This would force a new page rendering every time the page with the plugin is displayed, and suppress the cache...

The idea behind it requires most probably a page-level cache flag to provide persistence. This should lend itself to a user-defined NoCache flag, to round things out...

Why do we need this? Well, if you want to write a nice email form, for example, that is rendered on the fly with a sophisticated antirobot / antispam feature, you need a fresh page. If you want to poll a DB, you need that done freshly. This would open the door to some nice plugin development...