You are here

function redirect_redirect_update in Redirect 7

Same name and namespace in other branches
  1. 7.2 redirect.module \redirect_redirect_update()

Implements hook_redirect_update().

File

./redirect.module, line 883

Code

function redirect_redirect_update($redirect) {
  redirect_page_cache_clear($redirect);

  // Clear the page cache for the original redirect as well.
  if (!empty($redirect->original) && $redirect->original->source != $redirect->source) {
    redirect_page_cache_clear($redirect->original);
  }
}