Skip to content

Clear onboarding field info from database cache #9269

Closed
@dechov

Description

@dechov

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)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions