mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 02:56:15 +00:00
Removing useless condition in DboSource::cacheMethod()
This commit is contained in:
parent
edf2ea1e74
commit
5e665b32f2
1 changed files with 1 additions and 4 deletions
|
@ -493,10 +493,7 @@ class DboSource extends DataSource {
|
|||
*/
|
||||
function cacheMethod($method, $key, $value = null) {
|
||||
if ($this->cacheMethods === false) {
|
||||
if ($value !== null) {
|
||||
return $value;
|
||||
}
|
||||
return null;
|
||||
return $value;
|
||||
}
|
||||
if ($value === null) {
|
||||
return (isset($this->methodCache[$method][$key])) ? $this->methodCache[$method][$key] : null;
|
||||
|
|
Loading…
Add table
Reference in a new issue