diff options
author | Andrew Dolgov <[email protected]> | 2021-02-24 21:56:52 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2021-02-24 21:56:52 +0300 |
commit | 93940d2a9f80d9e1dac49b5eb7db23230d31c5f6 (patch) | |
tree | 71016661f6017918d0934eb462bd9552018d557a /utils | |
parent | 8b022c2bfb356d7dddaf334bc931d6dec77086fb (diff) | |
parent | 1adacd057230aea4ede29dab510385bf01cf99a3 (diff) |
Merge branch 'master' of git.fakecake.org:fox/tt-rss into weblate-integration
Diffstat (limited to 'utils')
-rw-r--r-- | utils/phpstan_tunables.php | 44 | ||||
-rwxr-xr-x | utils/regen_config_checks.sh | 17 |
2 files changed, 0 insertions, 61 deletions
diff --git a/utils/phpstan_tunables.php b/utils/phpstan_tunables.php deleted file mode 100644 index 7d5d8f03a..000000000 --- a/utils/phpstan_tunables.php +++ /dev/null @@ -1,44 +0,0 @@ -<?php - /* - this is only needed because PHPStan can't figure out define_default() - this file isn't sourced anywhere and only used for development - */ - - define('SINGLE_USER_MODE', rand() % 2); - define('LOCK_DIRECTORY', 'lock'); - - define('FEED_FETCH_TIMEOUT', 45); - // How may seconds to wait for response when requesting feed from a site - define('FEED_FETCH_NO_CACHE_TIMEOUT', 15); - // How may seconds to wait for response when requesting feed from a - // site when that feed wasn't cached before - define('FILE_FETCH_TIMEOUT', 45); - // Default timeout when fetching files from remote sites - define('FILE_FETCH_CONNECT_TIMEOUT', 15); - // How many seconds to wait for initial response from website when - // fetching files from remote sites - define('DAEMON_UPDATE_LOGIN_LIMIT', 30); - // stop updating feeds if users haven't logged in for X days - define('DAEMON_FEED_LIMIT', 500); - // feed limit for one update batch - define('DAEMON_SLEEP_INTERVAL', 120); - // default sleep interval between feed updates (sec) - define('MAX_CACHE_FILE_SIZE', 64*1024*1024); - // do not cache files larger than that (bytes) - define('MAX_DOWNLOAD_FILE_SIZE', 16*1024*1024); - // do not download general files larger than that (bytes) - define('CACHE_MAX_DAYS', 7); - // max age in days for various automatically cached (temporary) files - define('MAX_CONDITIONAL_INTERVAL', 3600*12); - // max interval between forced unconditional updates for servers - // not complying with http if-modified-since (seconds) - // define('MAX_FETCH_REQUESTS_PER_HOST', 25); - // a maximum amount of allowed HTTP requests per destination host - // during a single update (i.e. within PHP process lifetime) - // this is used to not cause excessive load on the origin server on - // e.g. feed subscription when all articles are being processes - // (not implemented) - define('DAEMON_UNSUCCESSFUL_DAYS_LIMIT', 30); - // automatically disable updates for feeds which failed to - // update for this amount of days; 0 disables - diff --git a/utils/regen_config_checks.sh b/utils/regen_config_checks.sh deleted file mode 100755 index e8b1ed830..000000000 --- a/utils/regen_config_checks.sh +++ /dev/null @@ -1,17 +0,0 @@ -#!/bin/sh - -DESTINATION="include/sanity_config.php" - -echo "<?php # This file has been generated at: " `date` > $DESTINATION - -echo -n "define('GENERATED_CONFIG_CHECK', " >> $DESTINATION -grep CONFIG_VERSION config.php-dist | awk -F ' |\)' '{ print $2 }' | xargs echo -n >> $DESTINATION -echo ");" >> $DESTINATION - -echo -n "\$required_defines = array( " >> $DESTINATION - -grep define\( config.php-dist | awk -F\' '{ print "*" $2 "*," }' | grep -v DB_PORT | xargs echo -n | sed -e s/,$// -e s/*/\'/g >> $DESTINATION - -echo "); ?>" >> $DESTINATION - - |