Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cacheexclude
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
cacheexclude
Merge requests
!9
Issue
#3342122
by mastap, smustgrave: /node/{id} not working for 404 exclusion
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Issue
#3342122
by mastap, smustgrave: /node/{id} not working for 404 exclusion
issue/cacheexclude-3342122:3342122-nodeid-not-working
into
2.1.x
Overview
0
Commits
1
Pipelines
1
Changes
2
Merged
Stephen Mustgrave
requested to merge
issue/cacheexclude-3342122:3342122-nodeid-not-working
into
2.1.x
1 week ago
Overview
0
Commits
1
Pipelines
1
Changes
2
Expand
Closes
#3342122
0
0
Merge request reports
Compare
2.1.x
2.1.x (base)
and
latest version
latest version
f72e4b37
1 commit,
1 week ago
2 files
+
91
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
Search (e.g. *.vue) (Ctrl+P)
src/EventSubscriber/CacheexcludeSubscriber.php
+
11
−
0
Options
@@ -107,6 +107,17 @@ class CacheexcludeSubscriber implements EventSubscriberInterface {
if
(
$path_matches
||
$alias_path_matches
)
{
return
TRUE
;
}
$system404
=
$this
->
configFactory
->
get
(
'system.site'
)
->
get
(
'page.404'
);
if
(
isset
(
$system404
))
{
if
(
is_array
(
$pages
)
&&
in_array
(
$current_path
,
$pages
))
{
return
TRUE
;
}
elseif
(
$system404
===
$pages
)
{
return
TRUE
;
}
}
}
return
FALSE
;
Loading