| @@ 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 | } |
|
| @@ 853-863 (lines=11) @@ | ||
| 850 | $return = $result->fetchAllArray(); |
|
| 851 | ||
| 852 | // save into the cache |
|
| 853 | if ( |
|
| 854 | $cacheKey !== null |
|
| 855 | && |
|
| 856 | $useCache === true |
|
| 857 | && |
|
| 858 | $cache instanceof Cache |
|
| 859 | && |
|
| 860 | $cache->getCacheIsReady() === true |
|
| 861 | ) { |
|
| 862 | $cache->setItem($cacheKey, $return, $cacheTTL); |
|
| 863 | } |
|
| 864 | ||
| 865 | } else { |
|
| 866 | $return = $result; |
|