Make WikiPage::doPurge() clear the file cache too
authorAaron Schulz <aschulz@wikimedia.org>
Sun, 11 Sep 2016 16:37:44 +0000 (09:37 -0700)
committerAaron Schulz <aschulz@wikimedia.org>
Sun, 11 Sep 2016 16:37:44 +0000 (09:37 -0700)
Change-Id: I6d2419d0948c9a191464ea8faf63913b7c5d5b1a

includes/page/WikiPage.php

index d5dfd3d..938f292 100644 (file)
@@ -1119,6 +1119,9 @@ class WikiPage implements Page, IDBAccessObject {
                }
 
                $this->mTitle->invalidateCache();
+
+               // Clear file cache
+               HTMLFileCache::clearFileCache( $this->getTitle() );
                // Send purge after above page_touched update was committed
                DeferredUpdates::addUpdate(
                        new CdnCacheUpdate( $this->mTitle->getCdnUrls() ),