Support If-modified-since for RawPage, fixes bug #10023.
authorGabriel Wicke <gwicke@users.mediawiki.org>
Tue, 10 Jan 2012 18:16:38 +0000 (18:16 +0000)
committerGabriel Wicke <gwicke@users.mediawiki.org>
Tue, 10 Jan 2012 18:16:38 +0000 (18:16 +0000)
commita521795ebbfd0cca3cb5f40813e44987300c0c02
tree7808304538cc8d64b3e80852cfc3c808a3a0a7ba
parent54e63c6abc299f0c718df164670d414cbd23ac6e
Support If-modified-since for RawPage, fixes bug #10023.

The check to WikiPage::getTouched will load the latest revision data, which is
not ideal for performance. In a quick test using ab -c 100 -n 1000 and without
MemCached enabled, the request rate for plain GET requests drops slightly from
108 to 104 req/second. As described in my comment
https://bugzilla.wikimedia.org/show_bug.cgi?id=10023#c9, this could certainly be
improved on. Overall, a few unmodified responses should still make the
server-side performance impact of this patch positive, while improving
client-side performance considerably for unmodified content.
includes/actions/RawAction.php