Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
E
expire
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
drupal.org
expire
Commits
fc5744d9
Commit
fc5744d9
authored
Dec 23, 2010
by
Mike Carper
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#968366: do not pass <front> in the output of the hook.
parent
5a2c1066
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
8 deletions
+7
-8
expire.module
expire.module
+7
-8
No files found.
expire.module
View file @
fc5744d9
...
...
@@ -359,19 +359,18 @@ function expire_cache_derivative(&$node, $paths) {
if
(
empty
(
$paths
))
{
return
FALSE
;
}
$site_frontpage
=
variable_get
(
'site_frontpage'
,
'node'
);
foreach
(
$paths
as
$path
)
{
// Given path
$expire
[]
=
$path
;
// Add the empty front page path if this is the alias
if
(
$path
==
variable_get
(
'site_frontpage'
,
'node'
))
{
// Special front page handling
if
(
$path
==
$site_frontpage
||
$path
==
''
||
$path
==
'<front>'
)
{
$expire
[]
=
''
;
$expire
[]
=
'rss.xml'
;
$expire
[]
=
$site_frontpage
;
}
//
Special front page feed handling
if
(
$path
==
''
||
$path
=
=
'<front>'
)
{
$expire
[]
=
'rss.xml'
;
//
Add given path
if
(
$path
!
=
'<front>'
)
{
$expire
[]
=
$path
;
}
// Path alias
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment