Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
drupal-3443915
Manage
Activity
Members
Labels
Plan
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
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
Issue forks
drupal-3443915
Commits
2aa84d21
Commit
2aa84d21
authored
12 years ago
by
Bram Goffings
Committed by
Tim Plunkett
12 years ago
Browse files
Options
Downloads
Patches
Plain Diff
added a cache decorator to improve performance
parent
81b16bb2
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/Drupal/views/Plugin/Type/ViewsPluginManager.php
+2
-1
2 additions, 1 deletion
lib/Drupal/views/Plugin/Type/ViewsPluginManager.php
with
2 additions
and
1 deletion
lib/Drupal/views/Plugin/Type/ViewsPluginManager.php
+
2
−
1
View file @
2aa84d21
...
...
@@ -10,6 +10,7 @@
use
Drupal\Component\Plugin\PluginManagerBase
;
use
Drupal\Component\Plugin\Factory\DefaultFactory
;
use
Drupal\views\Plugin\Discovery\ViewsDiscovery
;
use
Drupal\Core\Plugin\Discovery\CacheDecorator
;
class
ViewsPluginManager
extends
PluginManagerBase
{
/**
...
...
@@ -22,7 +23,7 @@ class ViewsPluginManager extends PluginManagerBase {
public
function
__construct
(
$type
)
{
$this
->
type
=
$type
;
$this
->
discovery
=
new
ViewsDiscovery
(
'views'
,
$this
->
type
);
$this
->
discovery
=
new
CacheDecorator
(
new
ViewsDiscovery
(
'views'
,
$this
->
type
)
,
'views:'
.
$this
->
type
,
'cache'
)
;
$this
->
factory
=
new
DefaultFactory
(
$this
->
discovery
);
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment