mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-07-16 08:54:42 +02:00
chore: add tools for manually administrating the configured cache (#3867)
This commit is contained in:
parent
3ce94409ab
commit
0bf5dbbc0b
10 changed files with 95 additions and 45 deletions
|
@ -37,6 +37,7 @@ class CacheFactory
|
|||
if ($index === false) {
|
||||
throw new \InvalidArgumentException(sprintf('Invalid cache name: "%s"', $name));
|
||||
}
|
||||
|
||||
$className = $cacheNames[$index] . 'Cache';
|
||||
if (!preg_match('/^[A-Z][a-zA-Z0-9-]*$/', $className)) {
|
||||
throw new \InvalidArgumentException(sprintf('Invalid cache classname: "%s"', $className));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue