return new Response('', Response::HTTP_NO_CONTENT
);
} #[Route(path: '/api/_action/cache_warmup', name: 'api.action.cache.delete_and_warmup', methods: ['DELETE'], defaults: ['_acl' => ['system:clear:cache']])]
public function clearCacheAndScheduleWarmUp(): Response
{ if ($this->cacheWarmer === null
) { throw new \
RuntimeException('Storefront is not installed'
);
} $this->cacheWarmer->
warmUp(Random::
getAlphanumericString(32
));
return new Response('', Response::HTTP_NO_CONTENT
);
} #[Route(path: '/api/_action/cache', name: 'api.action.cache.delete', methods: ['DELETE'], defaults: ['_acl' => ['system:clear:cache']])]
public function clearCache(): Response
{ $this->cacheClearer->
clear();
return new Response('', Response::HTTP_NO_CONTENT
);
}