[Mediawiki-l] Smart caching

Mark Bergsma mark at nedworks.org
Thu Jul 8 17:59:19 UTC 2004


Brion Vibber wrote:

> This looks like a typo. It used to be:
> 
>   if ( !isset( $oldid ) and $this->checkTouched() ) {
> 
> Change it to:
> 
>   if ( empty( $oldid ) and $this->checkTouched() ) {
> 
> and let me know how it works.

It didn't, isFileCacheable always returned false. That appeared to be 
because $action was always empty. If I requested an article with 
'&action=view', it did work.

I now changed isFileCacheable() to read:

...
	and ($action == 'view' or empty( $action ))
...

and that seemed to do the trick.

-- 
Mark

mark at nedworks.org



More information about the MediaWiki-l mailing list