Mark Bergsma wrote:
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.
[snip]
As requested, the corresponding diff, against beta4.
--
Mark
mark@nedworks.org
--- /home/mark/mediawiki-1.3.0beta4/includes/Article.php Sun Jun 27 00:05:26 2004
+++ includes/Article.php Thu Jul 8 17:55:50 2004
@@ -663,7 +663,7 @@
return;
}
- if ( !is_null( $oldid ) and $this->checkTouched() ) {
+ if ( empty( $oldid ) and $this->checkTouched() ) {
if( $wgOut->checkLastModified( $this->mTouched ) ){
return;
} else if ( $this->tryFileCache() ) {
@@ -1684,7 +1684,7 @@
and ($wgUser->getId() == 0)
and (!$wgUser->getNewtalk())
and ($this->mTitle->getNamespace() != Namespace::getSpecial())
- and ($action == 'view')
+ and ($action == 'view' or empty( $action ))
and (!isset($oldid))
and (!isset($diff))
and (!isset($redirect))