You are here

function oembed_cron in oEmbed 7

Same name and namespace in other branches
  1. 8 oembed.module \oembed_cron()
  2. 7.0 oembed.module \oembed_cron()

Implements hook_cron().

File

./oembed.module, line 77
Core functionality for oEmbed

Code

function oembed_cron() {

  // If cache_oembed opts out of oembed_flush_caches(), then system_cron()
  // doesn't clear its expired records, so do so here.
  if (!variable_get('oembed_cache_flush', TRUE)) {
    cache_clear_all(NULL, 'cache_oembed');
  }
}