Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
fc827a81
Commit
fc827a81
authored
Jun 11, 2013
by
alexpott
Browse files
Issue
#2002408
by fmizzell: Rename Views method cache_get() to cacheGet().
parent
f8b6ec88
Changes
3
Hide whitespace changes
Inline
Side-by-side
core/modules/views/lib/Drupal/views/Plugin/views/cache/CachePluginBase.php
View file @
fc827a81
...
...
@@ -142,7 +142,7 @@ public function cacheSet($type) {
*
* A plugin should override this to provide specialized caching behavior.
*/
function
cache
_g
et
(
$type
)
{
public
function
cache
G
et
(
$type
)
{
$cutoff
=
$this
->
cacheExpire
(
$type
);
switch
(
$type
)
{
case
'query'
:
...
...
core/modules/views/lib/Drupal/views/Plugin/views/cache/None.php
View file @
fc827a81
...
...
@@ -31,11 +31,11 @@ public function summaryTitle() {
/**
* Overrides \Drupal\views\Plugin\views\cache\CachePluginBase::cache
_g
et().
* Overrides \Drupal\views\Plugin\views\cache\CachePluginBase::cache
G
et().
*
* Replace the cache get logic so it does not return a cache item at all.
*/
function
cache
_g
et
(
$type
)
{
public
function
cache
G
et
(
$type
)
{
return
FALSE
;
}
...
...
core/modules/views/lib/Drupal/views/ViewExecutable.php
View file @
fc827a81
...
...
@@ -1178,7 +1178,8 @@ public function execute($display_id = NULL) {
else
{
$cache
=
$this
->
display_handler
->
getPlugin
(
'cache'
);
}
if
(
$cache
->
cache_get
(
'results'
))
{
if
(
$cache
->
cacheGet
(
'results'
))
{
if
(
$this
->
pager
->
usePager
())
{
$this
->
pager
->
total_items
=
$this
->
total_rows
;
$this
->
pager
->
updatePageInfo
();
...
...
@@ -1238,7 +1239,7 @@ public function render($display_id = NULL) {
$cache
=
$this
->
display_handler
->
getPlugin
(
'cache'
);
}
if
(
$cache
&&
$cache
->
cache
_g
et
(
'output'
))
{
if
(
$cache
&&
$cache
->
cache
G
et
(
'output'
))
{
}
else
{
if
(
$cache
)
{
...
...
Write
Preview
Supports
Markdown
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