wiki.techinc.nl/tests/phpunit/includes/GlobalFunctions
Aryeh Gregor 5e2199c5b0 BadFileLookup to replace wfIsBadImage
I think this probably shouldn't be directly in the MediaWiki namespace,
but I don't know where is a better place to put it.

In order to avoid gratuitous use of TitleFormatter, I changed the cache
format -- the old implementation used getPrefixedDBkey() and I switched
to an ns/dbkey pair. I also changed the cache keys to use SHA1 instead
of MD5, by Daniel's request.

The previous implementation cached the parsed blacklist for one minute
without invalidation, so it could return slightly stale results, but it
didn't retrieve the bad image list message on a cache hit. The new
implementation unconditionally retrieves the bad image list message, but
uses a hash of it in the cache key and caches for one day. The new
behavior happens to be more cleanly implementable in a service.

Bug: T200882
Bug: T139216
Change-Id: I69fed1b1f3cfc1aa149e0739780e67f6de01609d
2019-08-21 20:45:37 +03:00
..
GlobalTest.php GlobalFunctions: Hard deprecate wfGlobalCacheKey() function 2019-07-18 09:41:23 +01:00
GlobalWithDBTest.php BadFileLookup to replace wfIsBadImage 2019-08-21 20:45:37 +03:00
README
WfExpandUrlTest.php GlobalFunctions: Enable patch-coverage for wfExpandUrl test 2018-07-25 18:25:27 +01:00
wfParseUrlTest.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
wfShellExecTest.php Skip ::testT69870() under Windows system 2019-06-22 19:59:27 +00:00
wfThumbIsStandardTest.php Remove test code that depends on extension 2017-08-13 12:04:37 -04:00

This directory hold tests for includes/GlobalFunctions.php file
which is a pile of functions.