Add special query to reset the cache
This commit is contained in:
@ -38,8 +38,12 @@ class RequestDtoCache implements ValueResolverInterface
|
||||
$cacheData = $session->get($cacheKey, []);
|
||||
$queryData = $request->query->all();
|
||||
$params = $constructor->getParameters();
|
||||
$args = [];
|
||||
|
||||
if (isset($queryData['reset'])) {
|
||||
$queryData = $cacheData = [];
|
||||
}
|
||||
|
||||
$args = [];
|
||||
foreach ($params as $param) {
|
||||
$name = $param->getName();
|
||||
if (array_key_exists($name, $queryData)) {
|
||||
|
Reference in New Issue
Block a user