projects
/
civicrm-core.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge pull request #14911 from seamuslee001/ref_prev_next_cleanup_service
[civicrm-core.git]
/
CRM
/
Core
/
PrevNextCache
/
Redis.php
diff --git
a/CRM/Core/PrevNextCache/Redis.php
b/CRM/Core/PrevNextCache/Redis.php
index 99986f4d714423fdf6ebaa545833479697953bab..340f5c60a30fce0748ae4c305a752266042dd453 100644
(file)
--- a/
CRM/Core/PrevNextCache/Redis.php
+++ b/
CRM/Core/PrevNextCache/Redis.php
@@
-76,7
+76,6
@@
class CRM_Core_PrevNextCache_Redis implements CRM_Core_PrevNextCache_Interface {
$this->redis->hSet($dataKey, $entity_id, $data);
}
$this->redis->hSet($dataKey, $entity_id, $data);
}
- $dao->free();
return TRUE;
}
return TRUE;
}
@@
-250,7
+249,15
@@
class CRM_Core_PrevNextCache_Redis implements CRM_Core_PrevNextCache_Interface {
foreach ($this->redis->zRange($allKey, -1, -1, TRUE) as $lastElem => $lastScore) {
$maxScore = $lastScore;
}
foreach ($this->redis->zRange($allKey, -1, -1, TRUE) as $lastElem => $lastScore) {
$maxScore = $lastScore;
}
- return array($allKey, $dataKey, $selKey, $maxScore);
+ return [$allKey, $dataKey, $selKey, $maxScore];
+ }
+
+ /**
+ * @inheritDoc
+ */
+ public function cleanup() {
+ // Redis already handles cleaning up stale keys.
+ return;
}
}
}
}