1.20.x redirect.module | redirect_page_cache_clear(Redirect $redirect) |
Clear a page from the page cache.
Parameters
Redirect $redirect: The redirect upon which the cache-clear should be based.
File
- modules/
redirect/ redirect.module, line 998
Code
function redirect_page_cache_clear(Redirect $redirect) {
$path = url($redirect->source, array('absolute' => TRUE));
// Use a wildcard to catch paths with query strings.
cache('page')->deletePrefix($path);
}