MDL-25290 cache: Added cache locking plugin and converted locking implementations to that

This commit is contained in:
Sam Hemelryk
2012-10-08 09:53:51 +13:00
parent 6fec18203b
commit 34c84c723a
20 changed files with 413 additions and 255 deletions
+4 -1
View File
@@ -534,8 +534,11 @@ class phpunit_util {
make_cache_directory('');
make_cache_directory('htmlpurifier');
// Reset the cache API so that it recreates it's required directories as well.
cache_lock::reset();
cache_factory::reset();
// Purge all data from the caches. This is required for consistency.
// Any file caches that happened to be within the data root will have already been clearer (because we just deleted cache)
// and now we will purge any other caches as well.
cache_helper::purge_all();
}
/**