Skip to content

Commit

Permalink
delete factor cache key from config
Browse files Browse the repository at this point in the history
  • Loading branch information
venix12 committed Jan 18, 2025
1 parent 66283ac commit a551a10
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions config/osu.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
'achievement' => [
'icon_prefix' => env('USER_ACHIEVEMENT_ICON_PREFIX', 'https://assets.ppy.sh/user-achievements/'),
],

'api' => [
// changing the throttle rate doesn't reset any existing timers,
// changing the prefix key is the only way to invalidate them.
Expand All @@ -26,13 +27,15 @@
'scores_download' => env('API_THROTTLE_SCORES_DOWNLOAD', '10,1,api-scores-download'),
],
],

'avatar' => [
'cache_purge_prefix' => env('AVATAR_CACHE_PURGE_PREFIX'),
'cache_purge_method' => env('AVATAR_CACHE_PURGE_METHOD'),
'cache_purge_authorization_key' => env('AVATAR_CACHE_PURGE_AUTHORIZATION_KEY'),
'default' => env('DEFAULT_AVATAR', env('APP_URL', 'http://localhost').'/images/layout/[email protected]'),
'storage' => env('AVATAR_STORAGE', 'local-avatar'),
],

'bbcode' => [
// this should be random or a config variable.
// ...who am I kidding, this shouldn't even exist at all.
Expand Down Expand Up @@ -190,13 +193,12 @@
'processing_queue' => presence(env('SCORES_PROCESSING_QUEUE')) ?? 'osu-queue:score-statistics',
'submission_enabled' => get_bool(env('SCORES_SUBMISSION_ENABLED')) ?? true,
],

'seasonal' => [
'contest_id' => get_int(env('SEASONAL_CONTEST_ID')),
'ends_at' => env('SEASONAL_ENDS_AT'),
],
'seasons' => [
'factors_cache_duration' => 60 * (get_float(env('SEASONS_FACTORS_CACHE_DURATION')) ?? 60), // in minutes, converted to seconds
],

'store' => [
'notice' => presence(str_replace('\n', "\n", env('STORE_NOTICE') ?? '')),
],
Expand Down

0 comments on commit a551a10

Please sign in to comment.