-
Notifications
You must be signed in to change notification settings - Fork 800
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
Promote with Blaze: Purge cache on Atomic sites when site visibility changes #40650
Conversation
Thank you for your PR! When contributing to Jetpack, we have a few suggestions that can help us test and review your patch:
This comment will be updated as you work on your PR and make changes. If you think that some of those checks are not needed for your PR, please explain why you think so. Thanks for cooperation 🤖 The e2e test report can be found here. Please note that it can take a few minutes after the e2e tests checks are complete for the report to be available. Follow this PR Review Process:
Still unsure? Reach out in #jetpack-developers for guidance! Jetpack plugin: The Jetpack plugin has different release cadences depending on the platform:
If you have any questions about the release process, please ask in the #jetpack-releases channel on Slack. Wpcomsh plugin:
If you have any questions about the release process, please ask in the #jetpack-releases channel on Slack. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This tests well! Just left a minor comment suggesting to place the fix in jetpack-mu-wpcom
.
Looks like this is causing some tests to fail with this error:
|
This PR adds an improvement for Atomic sites that clears the eligibility cache every time the user changes the site's visibility status.
This is needed because currently the cache is set to 24h, meaning that the user will not be aware of the feature until the cache is expired and the eligibility call is triggered again.
Also, on Atomic sites, we no longer had the "Promote with Blaze" option, as we do for Simple Sites. This PR changes this to be more in line with the behavior we have on Simple and re-adds the item only for Atomic sites.
Related to Automattic/wp-calypso#95621
Proposed changes:
Other information:
Jetpack product discussion
Does this pull request change what data or activity we track or use?
Testing instructions: