function amp_clear_cache in Accelerated Mobile Pages (AMP) 7
Clear cache with id $id
Parameters
$id: ID of the cache to clear.
2 calls to amp_clear_cache()
- amp_node_delete in ./
amp.module - Implements hook_node_delete().
- amp_node_enabled_form_submit in ./
amp.module - Form callback to save the enabled status.
File
- ./
amp.module, line 1556
Code
function amp_clear_cache($id) {
// Clear bins as we have fresh data.
cache_clear_all('amp:node_enabled:' . $id, 'cache');
}