wiki.techinc.nl/includes/cache
Ori Livneh 3a252efa12 MessageCache: use APC for local caching, rather than files
In addition to eliminating disk IO in a hot path, using APC spares us from
having to serialize and unserialize cache arrays. Since we're not serializing,
though, we don't have a string representation to hash, so use a random string
instead. (The code already treats the association of hash string to cache as
purely symbolic, so this is not problematic.)

Whereas the hash was previously stored as the first 32 bytes of each cache
file, we now store it as an array key instead (like VERSION and EXPIRY were
already). Because this changes the structure of cached data, we have to bump
MSG_CACHE_VERSION.

While we're here, make MessageCache::getLocalCache() and
MessageCache::saveToLocal() protected, make their signatures more
consistent with other methods in this class. While they were (implicitly)
public before, there are absolutely no external callers in Core or
extensions[0][1], so we can skip the standard deprecation process.

[0]: https://github.com/search?q=%40wikimedia+getlocalcache&type=Code&utf8=%E2%9C%93
[1]: https://github.com/search?utf8=%E2%9C%93&q=%40wikimedia+savetolocal&type=Code

Change-Id: I020617d2df2a8f0f243b85f3383dc7b16f15aaad
2015-08-10 12:39:11 -07:00
..
BacklinkCache.php Merge "Drop outdated "documentation reviewed" tags" 2015-03-18 16:56:58 +00:00
CacheDependency.php Use mediawiki/at-ease library for suppressing warnings 2015-06-11 18:49:29 +00:00
CacheHelper.php
FileCacheBase.php Use mediawiki/at-ease library for suppressing warnings 2015-06-11 18:49:29 +00:00
GenderCache.php
HTMLFileCache.php $wgUseGzip had no effect 2015-06-20 19:07:07 +02:00
LCStoreStaticArray.php Fix variable name (follows Ib2c5856d) 2015-07-13 07:27:39 +00:00
LinkBatch.php Hygiene: Use strtr() instead of str_replace() for character swapping 2015-07-06 20:25:19 +00:00
LinkCache.php Don't let LinkCache grow indefinitely 2015-07-27 10:26:46 -07:00
LocalisationCache.php Remove unneeded empty lines at begin of if/else/foreach body 2015-06-19 20:05:45 +02:00
MessageBlobStore.php cache: Add in-process caching to MessageBlobStore 2015-06-02 23:10:16 +01:00
MessageCache.php MessageCache: use APC for local caching, rather than files 2015-08-10 12:39:11 -07:00
ObjectFileCache.php
ResourceFileCache.php resourceloader: Replace timestamp system with version hashing 2015-05-19 22:28:17 +00:00
UserCache.php Use correct variable in UserCache::doQuery 2015-07-11 10:22:32 +00:00