Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Feeds
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
MickGe
Feeds
Commits
43abc183
Commit
43abc183
authored
4 years ago
by
Andrew Dolgov
Browse files
Options
Downloads
Patches
Plain Diff
add phpstan dummy file
parent
0a788da2
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
utils/phpstan_tunables.php
+44
-0
44 additions, 0 deletions
utils/phpstan_tunables.php
with
44 additions
and
0 deletions
utils/phpstan_tunables.php
0 → 100644
+
44
−
0
View file @
43abc183
<?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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment