Merge "TitleSquidURLs hook for changing the URLs to purge"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Tue, 21 May 2013 20:06:10 +0000 (20:06 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Tue, 21 May 2013 20:06:10 +0000 (20:06 +0000)
1  2 
RELEASE-NOTES-1.22
includes/Title.php

diff --combined RELEASE-NOTES-1.22
@@@ -23,9 -23,6 +23,9 @@@ production
    It is still set to true for extension compatibility but doing so in extensions is deprecated.
  * $wgXhtmlDefaultNamespace is no longer used by core. Setting it will no longer change the
    xmlns used by MediaWiki. Reliance on this variable by extensions is deprecated.
 +* $wgHandheldStyle was removed.
 +* $wgJsMimeType is no longer used by core. Most usage has been removed since
 +  HTML output is now exclusively HTML5.
  
  === New features in 1.22 ===
  * (bug 44525) mediawiki.jqueryMsg can now parse (whitelisted) HTML elements and attributes.
@@@ -82,6 -79,8 +82,8 @@@
    which can be cascading (previously 'sysop' was hard-coded as the only one).
  * XHTML5 support has been improved. If you set $wgMimeType = 'application/xhtml+xml'
    MediaWiki will try outputting markup acording to XHTML5 rules.
+ * New hook 'TitleSquidURLs' for manipulating the list of URLs to be purged from
+   HTTP caches when a page is changed.
  
  === Bug fixes in 1.22 ===
  * Disable Special:PasswordReset when $wgEnableEmail is false. Previously one
diff --combined includes/Title.php
@@@ -3448,6 -3448,7 +3448,7 @@@ class Title 
                        }
                }
  
+               wfRunHooks( 'TitleSquidURLs', array( $this, &$urls ) );
                return $urls;
        }
  
                                $method
                        );
                } );
 -              HTMLFileCache::clearFileCache( $this );
  
 -              // Clear page info.
 -              $revision = WikiPage::factory( $this )->getRevision();
 -              if ( $revision !== null ) {
 -                      $memcKey = wfMemcKey( 'infoaction', $this->getPrefixedText(), $revision->getId() );
 -                      $success = $wgMemc->delete( $memcKey );
 -              } else {
 -                      $success = true;
 -              }
 -
 -              return $success;
 +              return true;
        }
  
        /**