[dokuwiki] Cache Expiry Standardisation

Hi,

I have sent through a patch to ensure the plugin manager will expire the wiki page cache as well as the cached css & js files after any changes to plugin status:
- enable/disable
- download
- delete
- update


I expire the caches by touching local.php, which is pretty heavy handed - caches could get expired unnecessarily, e.g.
- only a change to the state of a syntax plugin needs to expire the page cache.
- only a change to a plugin with CSS or JS files needs to expire the corresponding cache.


Is this suitable?
Should there be a couple of internal cache management functions to standardise cache handling from other parts of Dokuwiki. ie. I had to search through Dokuwiki for the bits of code that handle cache expiry and check what they checked to workout what I needed to alter, which probably isn't the best way :-)


I realise I am being lazy and the answers to the above two questions are probably maybe and yes, in which case I should probably propose something so cache management can be centralised. Maybe someone else has some ideas, inspiration and time.

e.g. I am not even sure how many caches there are in Dokuwiki now.

Cheers,

Chris
--
DokuWiki mailing list - more info at
http://wiki.splitbrain.org/wiki:mailinglist

Other related posts: