Avoid parser cache miss that often occurs post-save
authorAaron Schulz <aschulz@wikimedia.org>
Mon, 8 Jun 2015 23:05:54 +0000 (16:05 -0700)
committerOri.livneh <ori@wikimedia.org>
Tue, 9 Jun 2015 01:01:03 +0000 (01:01 +0000)
commit6b0163391b291fcf8a74dba9f84e34816a42c654
tree2d8d3ac3342b30e78572c860778ebd6922792872
parent50c6cd2458f2ad01997429bbf5d37241a8222a4c
Avoid parser cache miss that often occurs post-save

* This should not happen as doEditContent() saves the parser cache,
  so only the rare casing if incompatible options should have misses
* The bug could also cause post-save misses with edit stashing
* Avoid the second page parse post-redirect by making sure cache
  timestamps match up instead of calling time() at several points
* Likewise for null edits, which used a different code path
* Removed redundant purge in onArticleCreate() as the new row sets _touched
* Removed pointless purge in onArticleDelete() as there is no row to update
  (the method no-ops in that case to avoid contention already)

Change-Id: I178fe334a3f8691ffd9452bec30561a0c5d37c6c
includes/Title.php
includes/page/WikiPage.php
includes/parser/CacheTime.php