Inicio › API reference ›
hook_flush_caches
hooks/core.php, line 2254
- Versions
- hooks
hook_flush_caches()
Add a list of cache tables to be cleared.
This hook allows your module to add cache table names to the list of cache tables that will be cleared by the Clear button on the Performance page or whenever drupal_flush_all_caches is invoked.
See also
drupal_flush_all_caches()
@see system_clear_cache_submit()Parameters
None.
Valor de retorno
An array of cache table names.
Código
<?php
function hook_flush_caches() {
return array('cache_example');
}
?> 
Comentarios recientes
hace 17 horas 50 mins
hace 1 día 10 horas
hace 1 semana 21 horas
hace 14 semanas 4 días
hace 19 semanas 19 horas
hace 20 semanas 2 días
hace 20 semanas 5 días
hace 20 semanas 5 días
hace 21 semanas 2 días
hace 22 semanas 1 día