Skip to content

Use capped cache for encryption's user access list - #25055

Merged
PVince81 merged 1 commit into
masterfrom
enc-cappedcache-getaccesslist
Jun 10, 2016
Merged

Use capped cache for encryption's user access list#25055
PVince81 merged 1 commit into
masterfrom
enc-cappedcache-getaccesslist

Conversation

@PVince81

Copy link
Copy Markdown
Contributor

For #24403 (comment)

@owncloud/filesystem @owncloud/encryption @butonic @mmattel @nickvergessen @rullzer

@PVince81 PVince81 added this to the 9.1-current milestone Jun 10, 2016
@mention-bot

Copy link
Copy Markdown

By analyzing the blame information on this pull request, we identified @schiessle, @DeepDiver1975 and @LukasReschke to be potential reviewers

@guruz

guruz commented Jun 10, 2016

Copy link
Copy Markdown
Contributor

semi- 👍

Where was the (non capped?) $this->cache initialized before? In some sub class?

Does it make sense to construct it lazily only in getAccessList() ?

@PVince81

Copy link
Copy Markdown
Contributor Author

Where was the (non capped?) $this->cache initialized before? In some sub class?

It wasn't. It's PHP magic 🔮

This is valid PHP:

<?php
$x = null;
$x[] = 1;

I don't think there is much benefit to construct it lazily especially that this here is just a utility class instantiated once.

@PVince81

Copy link
Copy Markdown
Contributor Author

This is valid PHP:

I tested that locally and couldn't believe my eyes...

@butonic

butonic commented Jun 10, 2016

Copy link
Copy Markdown
Contributor

👍

@PVince81
PVince81 merged commit ffb2838 into master Jun 10, 2016
@PVince81
PVince81 deleted the enc-cappedcache-getaccesslist branch June 10, 2016 13:35
@nickvergessen

Copy link
Copy Markdown
Contributor

Not even needed to $x = null: https://3v4l.org/vC6gF

@PVince81

Copy link
Copy Markdown
Contributor Author

stable9: #25084

@lock

lock Bot commented Aug 5, 2019

Copy link
Copy Markdown

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.

@lock lock Bot locked as resolved and limited conversation to collaborators Aug 5, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants