Skip to content

Unintended coupling between WP Core version and Pantheon mu-plugin version #27

Open
@schlessera

Description

@schlessera

This package currently ships the default Pantheon must-use plugin within its bundled wp-content folder, to ensure caching works as intended, etc...

However, there seems to be a package design flaw here which has created an unintended coupling between versions of WordPress Core and the Pantheon must-use plugin.

We had this issue with a large multisite we have migrated over to Pantheon. To ensure we didn't introduce any unintended changes during the migration, we opted for a Composer stack with fixed versions, and we pinned the WordPress Core version down to what the original site was using: WP Core 5.7.4.

However, this has led to a 2-year-old version of the Pantheon must-use plugin to be included instead, and this is the likely culprit of massive performance issues that we saw once the site went live.

I solved this by adding the https://github.com/pantheon-systems/pantheon-mu-plugin package to the Composer stack as well, and switching the old with the new versions during a Composer post-install script.

Ideally, this Composer setup would pull in the above package as a dependency that can be kept up-to-date on composer update, instead of bundling a fixed version of it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions