Skip to content

Add cache clearing mechanisms #137

@g-elwell

Description

@g-elwell

What problem does this address?

When working with theme.json, patterns, and templates, changes are often not visible immediately due to caching which is employed by WordPress.

You can set the WP_DEVELOPMENT_MODE constant to disable this - https://make.wordpress.org/core/2023/07/14/configuring-development-mode-in-6-3/

However this is sometimes missed, especially on hosted dev environments.

What is your proposed solution?

Investigate possible approaches for setting WP_DEVELOPMENT_MODE and/or clearing caches within themer.

Potentially - have an option in the 'more menu' for enabling theme dev mode, and display a persistent notification in WP Admin to alert users that this is active.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions