src/GraphQL/Execution/QueryProcessor.php 1 location
|
@@ 191-197 (lines=7) @@
|
| 188 |
|
* |
| 189 |
|
* @see \Drupal\Core\Cache\CacheBackendInterface::set() |
| 190 |
|
*/ |
| 191 |
|
protected function maxAgeToExpire($maxAge) { |
| 192 |
|
if ($maxAge === Cache::PERMANENT) { |
| 193 |
|
return Cache::PERMANENT; |
| 194 |
|
} |
| 195 |
|
|
| 196 |
|
return (int) $this->requestStack->getMasterRequest()->server->get('REQUEST_TIME') + $maxAge; |
| 197 |
|
} |
| 198 |
|
|
| 199 |
|
/** |
| 200 |
|
* Generates a cache identifier for the passed cache contexts. |
src/GraphQL/Schema/SchemaLoader.php 1 location
|
@@ 235-241 (lines=7) @@
|
| 232 |
|
* |
| 233 |
|
* @see \Drupal\Core\Cache\CacheBackendInterface::set() |
| 234 |
|
*/ |
| 235 |
|
protected function maxAgeToExpire($maxAge) { |
| 236 |
|
if ($maxAge === Cache::PERMANENT) { |
| 237 |
|
return Cache::PERMANENT; |
| 238 |
|
} |
| 239 |
|
|
| 240 |
|
return (int) $this->requestStack->getMasterRequest()->server->get('REQUEST_TIME') + $maxAge; |
| 241 |
|
} |
| 242 |
|
|
| 243 |
|
/** |
| 244 |
|
* Generates a cache identifier for the passed cache contexts. |