Shorten the file name for the polls cache.

This commit is contained in:
Visman 2020-11-26 15:44:39 +07:00
parent 9472888c12
commit bd67fc9796

View file

@ -204,7 +204,7 @@ class FileCache implements CacheInterface
throw new InvalidArgumentException('Key is not a legal value');
}
if ('poll' == \substr($key, 0, 4)) {
return $this->cacheDir . "/polls/cache_{$key}.php";
return $this->cacheDir . "/polls/{$key}.php";
} else {
return $this->cacheDir . "/cache_{$key}.php";
}