At 2/21/2005 12:40 AM, Anders Wegge Jakobsen wrote:
You may want to look at http://article.gmane.org/gmane.science.linguistics.wikipedia.technical/14068
for a somewhat simpler way of doing the same.
No, that simple way does not work for extensions. It was reported by other people than me on mediawiki-l too. Neither does Title::invalidateCache().
I'm not 100% sure why, but I will give it a shot: once you call that enableClientCache(), it's already too late. The decision that is being made about serving the page from the cache, or re-creating it from scratch, is most probably done *before* the extension code is ever executed, since, basically, the extension is only executed to create the contents of the page (makes sense). My solution works since I'm not saying "don't use my cache now", but "don't cache me next time". And the next time, of course, it re-executes "don't cache me next time", etc. etc.
-- Sebastien Barre