question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Routinely clear out or expire stale creator info from `publisher_info_db` so that browser fetches fresh creator info upon next visit

See original GitHub issue

Description

For example, if a Twitter creator changes their name, and a user had already visited that Twitter account prior to the name change, it will retain the old string and show the old name string in the Rewards panel. The name is essentially cached with no expiration.

Solution

Clear out stale creator entries from publisher_info_db periodically so that the browser fetches new information next time the user visits the creator’s page.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
mkarolincommented, May 26, 2022

QA steps to verify:

  1. In Brave, navigate to a twitter page you own, e.g. twitter.com/supergood
  2. Open the Rewards panel and note supergood shown in the panel
  3. In twitter settings (account settings) change your name (handle) to something else, e.g. extragood
  4. In Brave, navigate to the page twitter.com/extragood Before the fix:
  5. Open the Rewards panel and note supergood is still shown in the panel With the fix:
  6. Open the Rewards panel and note extragood is now shown in the panel
0reactions
Uni-versecommented, Jul 12, 2022

Verification completed on Samsung Galaxy GS 21 & Tab S7 using

Brave 1.41.95 Chromium: 103.0.5060.114 (Official Build) (64-bit) Revision a1c2360c5b02a6d4d6ab33796ad8a268a6128226-refs/branch-heads/5060@{#1124} OS Android 12; Build/SP1A.210812.016

Using STR in https://github.com/brave/brave-browser/issues/20980#issuecomment-1138580509

Case 1: Twitter Site FAIL - Clear out stale creator entries from publisher_info_db periodically so that the browser fetches new information next time the user visits the creator’s page.

Encountered: https://github.com/brave/brave-browser/issues/23994

Example Example
screenshot-1657581034274 screenshot-1657580215942

Case 2: youtube.com / Google

FAIL - Clear out stale creator entries from publisher_info_db periodically so that the browser fetches new information next time the user visits the creator’s page.

Created follow up issue for Android - https://github.com/brave/brave-browser/issues/23995

Example Example Google Profile
screenshot-1657584852892 screenshot-1657584876558 screenshot-1657584465164
Read more comments on GitHub >

github_iconTop Results From Across the Web

What Is Web Browser Cache, and Why Do I Need to Clear It?
Clearing the browser's cache is a good practice to speed up your experience and an important first step in resolving issues related to...
Read more >
What is a browser cache? Should you clear it? - Surfshark
In this example, the cached info is given an expiration date (age), naturally referred to as fresh or stale. Stale data gets deleted,...
Read more >
Browser Caching & How To Clear It - IQComputing
To speed up your experience, your computer uses browser caching to temporary store web documents (such as HTML pages and images) of the...
Read more >
How do we control web page caching, across all browsers?
Chrome. Our requirement came from a security test. After logging out from our website you could press the back button and view cached...
Read more >
Chapter 20 - Configuring and Using Web Browsers - Quizlet
How do you clear the browser cache in Microsoft Edge? click the three-dot menu button; Settings; Choose what to clear (Clear browsing data);...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found