-
Couldn't load subscription status.
- Fork 1.5k
[Improvement]: MaintenanceModeHelper::isActive rely on cache instead of database directly #18166
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Review Checklist
|
aefa292 to
d50fe04
Compare
|
|
|
@kingjia90 how should we proceed with that one? 2025.2? |
|
I'd say it's safe to be merged (code-wise is just adding some caching things), just not sure if it fully addresses the reported issue but shouldn't be there any side-effects |
13f07e7 to
626f718
Compare
|
| return $entryId === self::OFF ? null : $entryId; | ||
| } | ||
|
|
||
| // The cache entry is not set, we try to load it from the database |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The thing is that the Cache::load() returns false when the entry is not existing. We involve the TmpStore from here and below (like as a fallback).
We set instead to a OFF string and check that to skip any DB/TmpStore calls.
Would it be a good solution?
Changes in this pull request
Resolves #17640
Additional info