mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-07-31 16:15:20 +02:00
fix: rewrite and improve caching (#3594)
This commit is contained in:
parent
a786bbd4e0
commit
4b9f6f7e53
45 changed files with 993 additions and 1169 deletions
|
@ -37,10 +37,6 @@ final class Configuration
|
|||
*/
|
||||
public static function verifyInstallation()
|
||||
{
|
||||
if (version_compare(\PHP_VERSION, '7.4.0') === -1) {
|
||||
throw new \Exception('RSS-Bridge requires at least PHP version 7.4.0!');
|
||||
}
|
||||
|
||||
$errors = [];
|
||||
|
||||
// OpenSSL: https://www.php.net/manual/en/book.openssl.php
|
||||
|
@ -211,6 +207,9 @@ final class Configuration
|
|||
if (!is_string(self::getConfig('error', 'output'))) {
|
||||
self::throwConfigError('error', 'output', 'Is not a valid String');
|
||||
}
|
||||
if (!in_array(self::getConfig('error', 'output'), ['feed', 'http', 'none'])) {
|
||||
self::throwConfigError('error', 'output', 'Invalid output');
|
||||
}
|
||||
|
||||
if (
|
||||
!is_numeric(self::getConfig('error', 'report_limit'))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue