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
);
} #[Route(path: '/api/_action/cleanup', name: 'api.action.cache.cleanup', methods: ['DELETE'], defaults: ['_acl' => ['system:clear:cache']])]
public function clearOldCacheFolders(): Response
{ $this->cacheClearer->
scheduleCacheFolderCleanup();
return new Response('', Response::HTTP_NO_CONTENT
);
}