| @@ 171-181 (lines=11) @@ | ||
| 168 | $return = $phonetic->phonetic_matches($searchString, $dataToSearchIn); |
|
| 169 | ||
| 170 | // save into the cache |
|
| 171 | if ( |
|
| 172 | $cacheKey !== null |
|
| 173 | && |
|
| 174 | $useCache === true |
|
| 175 | && |
|
| 176 | $cache instanceof Cache |
|
| 177 | && |
|
| 178 | $cache->getCacheIsReady() === true |
|
| 179 | ) { |
|
| 180 | $cache->setItem($cacheKey, $return, $cacheTTL); |
|
| 181 | } |
|
| 182 | ||
| 183 | return $return; |
|
| 184 | } |
|
| @@ 915-925 (lines=11) @@ | ||
| 912 | $return = $result->fetchAllArray(); |
|
| 913 | ||
| 914 | // save into the cache |
|
| 915 | if ( |
|
| 916 | $cacheKey !== null |
|
| 917 | && |
|
| 918 | $useCache === true |
|
| 919 | && |
|
| 920 | $cache instanceof Cache |
|
| 921 | && |
|
| 922 | $cache->getCacheIsReady() === true |
|
| 923 | ) { |
|
| 924 | $cache->setItem($cacheKey, $return, $cacheTTL); |
|
| 925 | } |
|
| 926 | ||
| 927 | } else { |
|
| 928 | $return = $result; |
|