function oembed_cache_flush in oEmbed 8
Implements hook_cache_flush().
File
- ./
oembed.module, line 48 - Core functionality for oEmbed
Code
function oembed_cache_flush() {
// Because some oEmbed providers (e.g., http://embed.ly) charge per request,
// allow cache_oembed to opt out of drupal_flush_all_caches() clearing.
if (\Drupal::config('oembed.settings')
->get('cache.flush')) {
\Drupal::cache('oembed')
->deleteAll();
}
}