($option)
| 154 | } |
| 155 | |
| 156 | private function getCacheMetadata($option): array |
| 157 | { |
| 158 | $currentCacheKey = 'csv-' . (string)floor(time() / self::CACHE_TTL_SECONDS); |
| 159 | $clientCacheKey = isset($option['cacheKey']) ? trim((string)$option['cacheKey'], '"') : ''; |
| 160 | |
| 161 | return [ |
| 162 | 'cacheable' => true, |
| 163 | 'key' => $currentCacheKey, |
| 164 | 'notModified' => ($clientCacheKey !== '' && $clientCacheKey === $currentCacheKey), |
| 165 | ]; |
| 166 | } |
| 167 | |
| 168 | private function minimizeRow($selectedColumns, $row) |
| 169 | { |