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

Method getCacheMetadata

lib/Datasource/LocalSpreadsheet.php:170–179  ·  view source on GitHub ↗
(array $option, int $mtime)

Source from the content-addressed store, hash-verified

168 }
169
170 private function getCacheMetadata(array $option, int $mtime): array {
171 $currentCacheKey = 'lsx-' . md5($option['link'] . '|' . $mtime);
172 $clientCacheKey = isset($option['cacheKey']) ? trim((string)$option['cacheKey'], '"') : '';
173
174 return [
175 'cacheable' => true,
176 'key' => $currentCacheKey,
177 'notModified' => ($clientCacheKey !== '' && $clientCacheKey === $currentCacheKey),
178 ];
179 }
180
181 private function validateRanges(string $rangeList): ?string {
182 $ranges = str_getcsv($rangeList);

Callers 1

readDataMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected