- Issue created by @fjgarlin
- First commit to issue fork.
- ๐ช๐ธSpain fjgarlin
Iโm having a look at the code and leaving some comments in the MR. Either Iโm not understanding the logic too well or I think we are losing too much โcachedโ information with this approach. Iโll leave a comment on the issue to have better track of things.
Right now (before this issue), we are storing all results for all plugins for a particular query in a keyvalue object, all under the same key, for all plugins.
With this MR, we are storing under that same keyvalue object, only the results of one plugin, so if we are going back and forth between plugins, we'd need to recalculate things.
I think it'd make more sense to have the "key" of the object being specific to the query and the source. If the call is successful, then store it, and if it isn't (ie:
$results->error
is not empty), then don't store it (so it goes through the full external query again when the same data is required).Possible approach:
getProjects
saysReturns projects that match a particular query, from all enabled sources.
We start and check the cache there, and I think it's wrong, because maybe one plugin was not working at the time.
We'd need to loop through the sources (quick) and then get the results, which may or may not be cached. ==> this is where we need to introduce the caching, per plugin, not globally. - ๐ฎ๐ณIndia narendraR Jaipur, India
Updated method comments and changes done as suggested.
I think this is ready for review again. - ๐บ๐ธUnited States phenaproxima Massachusetts
Thanks @narendrar!
This is definitely a step forward to untangling the "everything is a single agglomerated set of tabs" architecture that is the albatross around Project Browser's neck. There is more I'd like to do, but it can happen in a follow-up. Baby steps is what it's all about.
- First commit to issue fork.
-
chrisfromredfin โ
committed 5a88ca40 on 2.0.x authored by
narendrar โ
Issue #3498231: Split results storage in keyValue per plugin instead of...
-
chrisfromredfin โ
committed 5a88ca40 on 2.0.x authored by
narendrar โ
Automatically closed - issue fixed for 2 weeks with no activity.