Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix/plugins loaded priority for cache types #1412

Merged
merged 1 commit into from
Nov 14, 2024

Conversation

geckod22
Copy link
Collaborator

Proposed changes

On bootstrap.php the cache_types is added to the container in the action plugins_loaded with priority 11, but this fire after the performance module so that information is not present when the performance module check for that datas. Removing the priority will provide the needed information and the getContext also seem to work normally.

Due to data not present, the cache types classes are not correctly loaded, se when one changes the level cache option in the Perfomance panel the event will not trigger the Option listeners and no changes apply.

Type of Change

  • Bugfix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation Update (if none of the other choices apply)

Checklist

  • I have read the CONTRIBUTING doc
  • Linting and tests pass locally with my changes
  • I have added tests that prove my fix is effective or that my feature works
  • I have added necessary documentation (if appropriate)

Further comments

Copy link

cypress bot commented Nov 14, 2024

Bluehost Brand Plugin    Run #11566

Run Properties:  status check passed Passed #11566  •  git commit 6f488159dc ℹ️: Merge 5e7dddf9a7754545542b1f5978af567ff42370ed into 967081879808d5a745842336f4dc...
Project Bluehost Brand Plugin
Branch Review fix/plugins_loaded_priority_for_cache_types
Run status status check passed Passed #11566
Run duration 29m 12s
Commit git commit 6f488159dc ℹ️: Merge 5e7dddf9a7754545542b1f5978af567ff42370ed into 967081879808d5a745842336f4dc...
Committer Armando Liccardo
View all properties for this run ↗︎

Test results
Tests that failed  Failures 0
Tests that were flaky  Flaky 3
Tests that did not run due to a developer annotating a test with .skip  Pending 33
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 410
View all changes introduced in this branch ↗︎

Copy link

cypress bot commented Nov 14, 2024

Bluehost Brand Plugin    Run #11586

Run Properties:  status check passed Passed #11586  •  git commit 5e7dddf9a7: removed priority
Project Bluehost Brand Plugin
Branch Review fix/plugins_loaded_priority_for_cache_types
Run status status check passed Passed #11586
Run duration 29m 21s
Commit git commit 5e7dddf9a7: removed priority
Committer Armando Liccardo
View all properties for this run ↗︎

Test results
Tests that failed  Failures 0
Tests that were flaky  Flaky 1
Tests that did not run due to a developer annotating a test with .skip  Pending 33
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 410
View all changes introduced in this branch ↗︎

@wpscholar
Copy link
Member

@geckod22 - Was this branch based on the main branch or another branch? It seems to have picked up a lot of other things.

@geckod22 geckod22 changed the base branch from main to develop November 14, 2024 16:13
@circlecube circlecube merged commit a2be8b0 into develop Nov 14, 2024
21 of 25 checks passed
@circlecube circlecube deleted the fix/plugins_loaded_priority_for_cache_types branch November 14, 2024 19:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants