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
1a0ca124
Commit
1a0ca124
authored
12 years ago
by
Bram Goffings
Committed by
Tim Plunkett
12 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#1712456
by aspilicious: Convert old cache api in groupwise_maximum handler.
parent
e9b6395e
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/Drupal/views/Plugin/views/relationship/GroupwiseMax.php
+3
-3
3 additions, 3 deletions
lib/Drupal/views/Plugin/views/relationship/GroupwiseMax.php
with
3 additions
and
3 deletions
lib/Drupal/views/Plugin/views/relationship/GroupwiseMax.php
+
3
−
3
View file @
1a0ca124
...
...
@@ -178,7 +178,7 @@ function get_temporary_view() {
*/
function
options_form_submit
(
&
$form
,
&
$form_state
)
{
$cid
=
'views_relationship_groupwise_max:'
.
$this
->
view
->
name
.
':'
.
$this
->
view
->
current_display
.
':'
.
$this
->
options
[
'id'
];
cache
_clear_all
(
$cid
,
'cache_views_data'
);
cache
(
'views_data'
)
->
delete
(
$cid
);
}
/**
...
...
@@ -365,13 +365,13 @@ function query() {
else
{
// Get the stored subquery SQL string.
$cid
=
'views_relationship_groupwise_max:'
.
$this
->
view
->
name
.
':'
.
$this
->
view
->
current_display
.
':'
.
$this
->
options
[
'id'
];
$cache
=
cache
_get
(
$cid
,
'cache_views_data'
);
$cache
=
cache
(
'views_data'
)
->
get
(
$cid
);
if
(
isset
(
$cache
->
data
))
{
$def
[
'left_query'
]
=
$cache
->
data
;
}
else
{
$def
[
'left_query'
]
=
$this
->
left_query
(
$this
->
options
);
cache
_
set
(
$cid
,
$def
[
'left_query'
]
,
'cache_views_data'
);
cache
(
'views_data'
)
->
set
(
$cid
,
$def
[
'left_query'
]);
}
}
...
...
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