I try to believe you mean your local MediaWiki install instead of
Wikimedia servers ;-) I mean my local installation of the WikiMedia software.
$dbw->query("delete from cur"); would show better how useful your plugin
is. I cannot accress $dbw. A "global $dbw;" doesn't help. How to access variables like $dbw?
# prevent a page from being cached?
Set cur_touched on every hit...
Then I cannot do it out of the <php> tags, because that php is not parsed. And to set cur_touched... I don't know if it ist hat good(?).
# clear the cache?
Which cache?
The cache of the WikiMedia software (my local installation).
$wgCachePages = false; disables the caching of files generally. And I don't know what to do to decide dynamically - if the page can be cached or not. I don't want create a project with mainly dynamic sites, hence it makes no sense do prohibit site caching. It would only raise the loading time.
Arvalux.