MDL-25290 cache: Added cache locking plugin and converted locking implementations to that
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user