Skip to content

Clear onboarding field info from database cache #9269

Open
@dechov

Description

As of now, wcpay_onboarding_fields_data is never cleared from “cache” (backed by the options table) – it is not used except in one specific (onboarding) case, takes up over 100kB (at least under the one set of conditions I tested), and is automatically fetched if not available.

According to @dmallory42 this can be addressed by "clearing it after the onboarding is complete", or "making it a transient instead" to facilitate automatic expiration (either as part of Database_Cache util or bypassing it?)

(Edit: we should also consider stores that are upgrading, making sure to apply expiration retroactively)

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    component: onboardingOnboarding merchant in KYC, dev vs live, etcfocus: account lifecyclepriority: lowThe issue/PR is low priority—not many people are affected or there’s a workaround, etc.type: technical debtThis issue/PR represents/solves the technical debt of the project.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions