4 * Definition cache decorator class that cleans up the cache
5 * whenever there is a cache miss.
7 class HTMLPurifier_DefinitionCache_Decorator_Cleanup
extends HTMLPurifier_DefinitionCache_Decorator
12 public $name = 'Cleanup';
15 * @return HTMLPurifier_DefinitionCache_Decorator_Cleanup
17 public function copy()
19 return new HTMLPurifier_DefinitionCache_Decorator_Cleanup();
23 * @param HTMLPurifier_Definition $def
24 * @param HTMLPurifier_Config $config
27 public function add($def, $config)
29 $status = parent
::add($def, $config);
31 parent
::cleanup($config);
37 * @param HTMLPurifier_Definition $def
38 * @param HTMLPurifier_Config $config
41 public function set($def, $config)
43 $status = parent
::set($def, $config);
45 parent
::cleanup($config);
51 * @param HTMLPurifier_Definition $def
52 * @param HTMLPurifier_Config $config
55 public function replace($def, $config)
57 $status = parent
::replace($def, $config);
59 parent
::cleanup($config);
65 * @param HTMLPurifier_Config $config
68 public function get($config)
70 $ret = parent
::get($config);
72 parent
::cleanup($config);