| @@ 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 | } |
|
| @@ 905-915 (lines=11) @@ | ||
| 902 | $return = $result->fetchAllArray(); |
|
| 903 | ||
| 904 | // save into the cache |
|
| 905 | if ( |
|
| 906 | $cacheKey !== null |
|
| 907 | && |
|
| 908 | $useCache === true |
|
| 909 | && |
|
| 910 | $cache instanceof Cache |
|
| 911 | && |
|
| 912 | $cache->getCacheIsReady() === true |
|
| 913 | ) { |
|
| 914 | $cache->setItem($cacheKey, $return, $cacheTTL); |
|
| 915 | } |
|
| 916 | ||
| 917 | } else { |
|
| 918 | $return = $result; |
|