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

Method getRequestCacheKey

lib/Controller/OutputController.php:185–191  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

183 }
184
185 private function getRequestCacheKey(): ?string {
186 $clientETag = $this->request->getHeader('If-None-Match');
187 if ($clientETag === null || $clientETag === '') {
188 return null;
189 }
190 return trim($clientETag, '"');
191 }
192
193 private function extractCacheMetadata(array $result): array {
194 $cache = ['cacheable' => false, 'key' => null, 'notModified' => false];

Callers 3

readMethod · 0.95
readPanoramaMethod · 0.95
evaluateIfNoneMatchMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected