Commit a141009e authored by Mike Carper's avatar Mike Carper

#911280 by dixon_: check if path is front page; if yes expire frontpage.

parent 70c684ff
......@@ -325,6 +325,12 @@ function expire_cache_derivative(&$node, $paths, $both = FALSE, $force_flush = F
// Given path
$expire[] = $path;
// Add the empty front page path if this is the alias
if ($path == variable_get('site_frontpage', 'node')) {
$expire[] = '';
$expire[] = 'rss.xml';
}
// Special front page feed handling
if ($path == '' || $path == '<front>') {
$expire[] = 'rss.xml';
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment