-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
[stable9.1] Add check for empty result in storage memcache #28229
Conversation
fafe8f3
to
3d425db
Compare
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.
Tested at customer where cache was returning empty arrays instead
@PVince81 Forward port? Seems safe. |
@tom go for it! |
I'll take care of the forward ports |
let's only merge the stable9.1 once master and co have been merged too |
lib/private/Files/Cache/Storage.php
Outdated
@@ -109,7 +109,7 @@ public static function getStorageById($storageId) { | |||
self::$localCache = new CappedMemoryCache(); | |||
} | |||
$result = self::$localCache->get($storageId); | |||
if ($result === null) { | |||
if ($result === null || empty($result) || !isset($result['numeric_id'])) { |
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.
Remove empty($result)
?
@jvillafanez removed here now ffed517 |
rebased |
ffed517
to
23d28a1
Compare
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Description
It was observed that sometimes the row data is empty which could be due to memcache returning empty arrays instead of null.
Related Issue
Motivation and Context
How Has This Been Tested?
Screenshots (if appropriate):
Types of changes
Checklist:
@tomneedham