On Tue, 12 Oct 2004 17:04:47 +0200, Arvalux arvalux@yahoo.de wrote:
$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?
I guess you should count yourself lucky: your hack is less insecure than it looks, and can't access global variables. I'm not too sure what it *might* be able to do though.
# 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(?).
Perhaps you need to create a cur_nocache flag, automatically set if the page contains <php> elements. Or (it's crazy but it just might work) you could set cur_touched to some time in the future whenever the page is displayed; that way, the cache will always be older than the timestamp says it should be.