-
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
Drop file caching #16200
Drop file caching #16200
Conversation
|
Ha, there is another possible usage https://github.com/owncloud/core/blob/master/lib/private/backgroundjob/joblist.php#L176 |
hm, available as server service. killing it might break api, if in use. |
we should simply return null in these two cases - these jobs are no longer required. |
@blizzz any chance to get this going ? THX |
@DeepDiver1975 here you go. |
meh, oversaw another thing |
bb695df
to
00bd76d
Compare
Now we should be fine. |
* | ||
* @return \OCP\ICache | ||
* @deprecated use getMemCacheFactory to obtain a proper cache |
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.
Can you add the version number of deprecation directly after the keyword:
@deprecated 8.1.0 ...
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.
done
00bd76d
to
e5a91fc
Compare
A new inspection was created. |
$this->registerService('UserCache', function ($c) { | ||
return new UserCache(); | ||
$this->registerService('NullCache', function ($c) { | ||
return new NullCache(); |
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.
From my understanding we shall use ArrayCache here - otherwise potential users will get a different behavior.
objections @nickvergessen @MorrisJobke
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.
Yes. ArrayCache
will result in the better behaviour. Otherwise: The NullCache just doesn't cache anything and will "only" have impact on the performance.
👍 ready to go from my understanding @icewind1991 @PVince81 @nickvergessen please review - THX |
👍 LDAP still works, the job got cleaned from the database, works |
File cache should be removed.
@jvillafanez this should also fix what you found in #16170 (comment)
cc @DeepDiver1975