Skip to content

Promotions are fetched too often #9513

Closed
brave/brave-core
#5760

Description

We should have some cacheing in this area, so that we don't pull every time that you open a panel for example. We should store last fetch in preferences (last_fetch.promotion) and then when we get request for promotion fetch we check that preference and if's not older then 10min just return what we have in db. We also need to allow for this check to be removed if you pass is_testing set

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions