Skip to content

Add Site Health check for Full Page Cache usage #263

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

Merged

Conversation

manuelRod
Copy link
Contributor

@manuelRod manuelRod commented Mar 24, 2022

Summary

Fixes #220
Trac #54423

Relevant technical choices

As @westonruter proposed, I've adapted and migrated the full page caching Site Health test from AMP to the performance plugin.

Checklist

  • PR has either [Focus] or Infrastructure label.
  • PR has a [Type] label.
  • PR has a milestone or the no milestone label.

@manuelRod manuelRod marked this pull request as ready for review March 30, 2022 10:01
@ffPjrZUGXfcxuAj
Copy link

please add
'x-aruba-cache' => $cache_hit_callback,
for new aruba hispeed cache service

@mxbclang
Copy link
Contributor

mxbclang commented Apr 1, 2022

@manuelRod Since I'm working on updating the language on the other Site Health reports, I took a look at the copy for this one as well and left some thoughts. Let me know if you have any questions!

@manuelRod
Copy link
Contributor Author

Thanks for that @bethanylang, where I can find those thoughts?

Copy link
Member

@westonruter westonruter left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall looks good to me, but it looked good to me in the AMP plugin when I merged it, so I'm probably not the best to review for merging here.

@manuelRod manuelRod added [Focus] Site Health [Type] Feature A new feature within an existing module labels Apr 12, 2022
@manuelRod manuelRod added this to the 1.0.0 milestone Apr 12, 2022
@manuelRod
Copy link
Contributor Author

manuelRod commented Apr 12, 2022

please add 'x-aruba-cache' => $cache_hit_callback, for new aruba hispeed cache service

added

Copy link
Member

@felixarntz felixarntz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@manuelRod Overall the code here looks solid. I left a few minor things for some cleanup, particularly I'd suggest to remove two of the functions that are only used in one place and actually make the code more complex to follow rather than less because of splitting how the $result is generated.

@felixarntz
Copy link
Member

@bethanylang Would be great to get your review here specifically on the copy in the Site Health check.

@felixarntz felixarntz requested a review from mxbclang April 13, 2022 23:50
Copy link
Member

@felixarntz felixarntz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@manuelRod This looks solid and should be close to merge, I mostly have some nit-picks around documentation. Please make sure to update all version references for new code in this PR to n.e.x.t, per our guidelines.

Last but not least, based on #310, please refresh this PR against latest trunk and add the corresponding entries for this new module to the CODEOWNERS file, with at least yourself as the module owner.

@manuelRod manuelRod requested a review from JustinyAhin as a code owner May 4, 2022 14:21
@felixarntz
Copy link
Member

@manuelRod @westonruter Given that this is an entirely new module and the 1.1.0 release is about to be finalized with the release coming next week, I think with the remaining iterations to make this won't give us enough time for testing prior to the release, so I think this would be better to include in the following 1.2.0 release. Let's make sure we finalize the PR soon so that it can be merged into trunk shortly after 1.1.0, to have time for testing and potential further iterations.

@felixarntz felixarntz modified the milestones: 1.1.0, 1.2.0 May 10, 2022
@akshitsethi
Copy link
Contributor

akshitsethi commented May 25, 2022

I tested the module and so far it looks good to me. Multiple scenarios (looback request failed, without cache, with cache plugin) were tested and I've attached the screenshot for each below:

Loopback failure

Screenshot 2022-05-25 at 4 43 40 PM

Without cache

Screenshot 2022-05-25 at 5 00 36 PM

Cache enabled

Screenshot 2022-05-25 at 5 05 32 PM

I'll test some more scenarios and update it over here.

Copy link
Member

@felixarntz felixarntz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@manuelRod Looks good to me, great stuff!

I left a few minor points on documentation and indentation, please address these. None of these are too critical though, so I'm already going to mark this as approved from my end.

@felixarntz felixarntz requested a review from mxbclang May 26, 2022 20:50
manuelRod and others added 4 commits May 30, 2022 13:14
Co-authored-by: Felix Arntz <felixarntz@users.noreply.github.com>
Co-authored-by: Felix Arntz <felixarntz@users.noreply.github.com>
Co-authored-by: Felix Arntz <felixarntz@users.noreply.github.com>
Co-authored-by: Felix Arntz <felixarntz@users.noreply.github.com>
Copy link
Member

@felixarntz felixarntz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great, thanks @manuelRod!

@bethanylang You previously requested changes regarding the copy. Can you please give this another pass and approve once it's good from your end?

Copy link
Contributor

@mxbclang mxbclang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Language LGTM!

@mxbclang
Copy link
Contributor

mxbclang commented Jun 3, 2022

@felixarntz @manuelRod Apologies if I was a blocker here; just approved on my side. Looks like this is good to go for 1.2.0! 🥳

@felixarntz
Copy link
Member

Thanks @bethanylang!

@felixarntz felixarntz merged commit 6c3e795 into WordPress:trunk Jun 3, 2022
@felixarntz felixarntz changed the title Add Site Health test for full page caching Add Site Health check for Full Page Cache usage Jun 3, 2022
@manuelRod
Copy link
Contributor Author

awesome, thanks guys!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Type] Feature A new feature within an existing module
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add Site Health test for full page caching (advanced cache)
7 participants