| @@ 1012-1022 (lines=11) @@ | ||
| 1009 | $return = $result->fetchAllArray(); |
|
| 1010 | ||
| 1011 | // save into the cache |
|
| 1012 | if ( |
|
| 1013 | $cacheKey !== null |
|
| 1014 | && |
|
| 1015 | $useCache === true |
|
| 1016 | && |
|
| 1017 | $cache instanceof Cache |
|
| 1018 | && |
|
| 1019 | $cache->getCacheIsReady() === true |
|
| 1020 | ) { |
|
| 1021 | $cache->setItem($cacheKey, $return, $cacheTTL); |
|
| 1022 | } |
|
| 1023 | ||
| 1024 | } else { |
|
| 1025 | $return = $result; |
|
| @@ 227-237 (lines=11) @@ | ||
| 224 | $return = $phonetic->phonetic_matches($searchString, $dataToSearchIn); |
|
| 225 | ||
| 226 | // save into the cache |
|
| 227 | if ( |
|
| 228 | $cacheKey !== null |
|
| 229 | && |
|
| 230 | $useCache === true |
|
| 231 | && |
|
| 232 | $cache instanceof Cache |
|
| 233 | && |
|
| 234 | $cache->getCacheIsReady() === true |
|
| 235 | ) { |
|
| 236 | $cache->setItem($cacheKey, $return, $cacheTTL); |
|
| 237 | } |
|
| 238 | ||
| 239 | return $return; |
|
| 240 | } |
|