19declare(strict_types=1);
31 return hash(
"sha256", self::class);
36 return "All global caches flushed";
53 $client_ini = $environment->
getResource(Environment::RESOURCE_CLIENT_INI);
54 if ($client_ini ===
null) {
55 throw new UnexpectedValueException(
"Client ini not found");
57 $this->cache_settings_adapter->readFromIniFile($client_ini);
58 $services =
new Services($this->cache_settings_adapter->getConfig());
59 $services->flushAdapter();
__construct(private \ilGlobalCacheSettingsAdapter $cache_settings_adapter)
achieve(Environment $environment)
getPreconditions(Environment $environment)
isApplicable(Environment $environment)
@inheritDoc
An environment holds resources to be used in the setup process.
getResource(string $id)
Consumers of this method should check if the result is what they expect, e.g.