MCPcopy Create free account
hub / github.com/Rello/analytics / getCacheMetadata

Method getCacheMetadata

lib/Datasource/LocalCsv.php:145–155  ·  view source on GitHub ↗
(array $option, int $mtime)

Source from the content-addressed store, hash-verified

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 {

Callers 1

readDataMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected