function HTMLPurifier_DefinitionCache_Drupal::storeInDrupalCache in HTML Purifier 6
Same name and namespace in other branches
- 5 HTMLPurifier_DefinitionCache_Drupal.php \HTMLPurifier_DefinitionCache_Drupal::storeInDrupalCache()
- 6.2 HTMLPurifier_DefinitionCache_Drupal.php \HTMLPurifier_DefinitionCache_Drupal::storeInDrupalCache()
- 7.2 HTMLPurifier_DefinitionCache_Drupal.php \HTMLPurifier_DefinitionCache_Drupal::storeInDrupalCache()
- 7 HTMLPurifier_DefinitionCache_Drupal.php \HTMLPurifier_DefinitionCache_Drupal::storeInDrupalCache()
3 calls to HTMLPurifier_DefinitionCache_Drupal::storeInDrupalCache()
- HTMLPurifier_DefinitionCache_Drupal::add in ./
HTMLPurifier_DefinitionCache_Drupal.php - Add an object to the cache without overwriting
- HTMLPurifier_DefinitionCache_Drupal::replace in ./
HTMLPurifier_DefinitionCache_Drupal.php - Replace an object that already exists in the cache.
- HTMLPurifier_DefinitionCache_Drupal::set in ./
HTMLPurifier_DefinitionCache_Drupal.php - Unconditionally add an object to the cache, overwrites any existing object.
File
- ./
HTMLPurifier_DefinitionCache_Drupal.php, line 90
Class
- HTMLPurifier_DefinitionCache_Drupal
- Cache handler that stores all data in drupals builtin cache
Code
function storeInDrupalCache($def, $key) {
cache_set("htmlpurifier:{$key}", serialize($def), 'cache', CACHE_PERMANENT);
}