We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Moved from nette/nette#592
The text was updated successfully, but these errors were encountered:
For my installation, i added Cache::NAMESPACE and this code to Filestorage clean method.
Cache::NAMESPACE
Filestorage
clean
$namespaces = $conditions[Cache::NAMESPACE] ?? false; . . . else if($namespaces) { if (!is_array($namespaces)) { $namespaces = [$namespaces]; } foreach ($namespaces as $namespace) { $dir = $this->dir . "/_$namespace"; $items = Nette\Utils\Finder::findFiles('')->from($dir); foreach ($items as $item) { $this->delete($item); } @rmdir($dir); } } . . .
It seems to work fine.
Also added this to SqlLiteStorage, but havent tested it:
. . . else if(!empty($conditions[Cache::NAMESPACE])) { if (is_array($conditions[Cache::NAMESPACE])) { $namespaces = $conditions[Cache::NAMESPACE]; } else { $namespaces = [$conditions[Cache::NAMESPACE]]; } foreach ($namespaces as $namespace) { $this->pdo->prepare("DELETE FROM cache WHERE key LIKE %/_$namespace/%")->execute(); } } . . .
Sorry, something went wrong.
No branches or pull requests
Moved from nette/nette#592
The text was updated successfully, but these errors were encountered: