ParserCache: Don't try to save to nothing if disabled
authorKunal Mehta <legoktm@member.fsf.org>
Wed, 27 Apr 2016 00:45:52 +0000 (17:45 -0700)
committerKunal Mehta <legoktm@member.fsf.org>
Tue, 3 May 2016 01:24:17 +0000 (18:24 -0700)
commita9a5b2c2c4ad5a8b1111fe8ba2890dae8a3a89dd
tree3f20e3605de4597d4554aa1b0024a23311d0bc85
parent32e56eefaa1d9c0a832f9e32db4f9bdaad28f02e
ParserCache: Don't try to save to nothing if disabled

If the ParserCache is disabled via $wgParserCacheType = CACHE_NONE,
don't bother trying to save anything because it won't do anything.

This also removes the misleading "Saved in parser cache" HTML comment
from the rendered output since it isn't being saved at all.

Change-Id: I5603d2b2866f0079cdcd837b1f1a4efc00bc8ed9
includes/parser/ParserCache.php