(array $option, int $mtime)
| 143 | } |
| 144 | |
| 145 | private function getCacheMetadata(array $option, int $mtime): array |
| 146 | { |
| 147 | $currentCacheKey = 'lcsv-' . md5($option['link'] . '|' . $mtime); |
| 148 | $clientCacheKey = isset($option['cacheKey']) ? trim((string)$option['cacheKey'], '"') : ''; |
| 149 | |
| 150 | return [ |
| 151 | 'cacheable' => true, |
| 152 | 'key' => $currentCacheKey, |
| 153 | 'notModified' => ($clientCacheKey !== '' && $clientCacheKey === $currentCacheKey), |
| 154 | ]; |
| 155 | } |
| 156 | |
| 157 | private function minimizeRow($selectedColumns, $row) |
| 158 | { |