Skip to content

Add can-load.php files to load Site Health checks for persistent cache and full page cache conditionally #540

Closed

Description

@felixarntz

Since the two modules for the Site Health checks for persistent cache and full page cache got merged into core, we need to add logic so that these two modules are only loaded going forward when the relevant core functionality is not already present. For that we should use the can-load.php approach which was established in #293.

Relevant WordPress core commits:

Since the class that has all the changes is only loaded within WP Admin, we may not be able to check for actual functions or methods reliably, as our plugin initialization would run too early. So potentially we will simply need to check that the WordPress version is lower than 6.1.

Activity

  1. added this to the 1.6.0 milestone on Sep 19, 2022
  2. removed
    Needs DevAnything that requires development (e.g. a pull request)
    on Sep 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Good First IssueIssue particularly suitable to be worked on by new contributors[Type] EnhancementA suggestion for improvement of an existing feature

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions