Commit 4267b6b0 authored by Spleshka's avatar Spleshka

Issue #2206761 by Qubical, Spleshka: Frontpage not expired.

parent 697134f7
......@@ -314,6 +314,16 @@ class ExpireAPI {
return $urls;
}
/**
* Return urls for a front page.
*/
public static function getFrontPageUrls() {
$urls = array();
$urls['front'] = '';
$urls['front-path'] = variable_get('site_frontpage', 'node');
return $urls;
}
/**
* Add internal path as a keys to array with absolute urls.
*
......
......@@ -61,7 +61,7 @@ class ExpireComment implements ExpireInterface {
// Expire front page.
$expire_front_page = variable_get('expire_comment_front_page' . $variable_suffix, EXPIRE_COMMENT_FRONT_PAGE);
if ($expire_front_page) {
$expire_urls['front'] = '<front>';
$expire_urls = ExpireAPI::getFrontPageUrls();
}
// Expire comment page.
......
......@@ -39,7 +39,7 @@ class ExpireFile implements ExpireInterface {
// Expire front page.
$expire_front_page = variable_get('expire_file_front_page', EXPIRE_FILE_FRONT_PAGE);
if ($expire_front_page) {
$expire_urls['front'] = '<front>';
$expire_urls = ExpireAPI::getFrontPageUrls();
}
// Expire file url.
......
......@@ -48,7 +48,7 @@ class ExpireNode implements ExpireInterface {
// Expire front page.
$expire_front_page = variable_get('expire_node_front_page' . $variable_suffix, EXPIRE_NODE_FRONT_PAGE);
if ($expire_front_page) {
$expire_urls['front'] = '<front>';
$expire_urls = ExpireAPI::getFrontPageUrls();
}
// Expire node page.
......
......@@ -38,7 +38,7 @@ class ExpireUser implements ExpireInterface {
// Expire front page.
$expire_front_page = variable_get('expire_user_front_page', EXPIRE_USER_FRONT_PAGE);
if ($expire_front_page) {
$expire_urls['front'] = '<front>';
$expire_urls = ExpireAPI::getFrontPageUrls();
}
// Expire user page.
......
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