MDL-41017 improve purify caching

The improvements include:

* HTMLPurifier cache is stored in localcachedir
* allowobjectembed changes are not ignored any more
* the cache keys include revision and all options which makes
  this suitable for local caches on cluster nodes
* unchanged test is replaced by "true" value which should
  significantly improve performance
* removal of purge_all_caches() hack for directory recreation
* comments and coding style cleanup
This commit is contained in:
Petr Škoda
2013-08-03 11:31:18 +02:00
parent a31e811563
commit 528a7b447a
5 changed files with 76 additions and 22 deletions
-1
View File
@@ -598,7 +598,6 @@ abstract class testing_util {
closedir($handle);
make_temp_directory('');
make_cache_directory('');
make_cache_directory('htmlpurifier');
make_localcache_directory('');
// Reset the cache API so that it recreates it's required directories as well.
cache_factory::reset();