-
Notifications
You must be signed in to change notification settings - Fork 799
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Boost: Update Page Cache notice for WP Cloud clients (#39155)
* Disable page cache on wp cloud clients * Update title for page cache notice on WoA sites * Update the Page Cache module for WoA sites to show as "active" * Add changelog * Update Page Cache notice colors for WoA and WP Cloud sites * Use separate components to avoid ternary checks * Check if advanced-cache.php can be run in order to determine availability * Check if module is available before showing the notice * Rename variable for clarity
- Loading branch information
Showing
10 changed files
with
97 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
projects/plugins/boost/app/assets/src/js/features/activate-license/activate-license.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
projects/plugins/boost/app/assets/src/js/lib/utils/hosting.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
/** | ||
* Determine if this site is on a WP Cloud client. | ||
* | ||
* @return {boolean} True if the site is on a WP Cloud client, false otherwise. | ||
*/ | ||
export const isWpCloudClient = (): boolean => { | ||
return Jetpack_Boost.site.host === 'atomic'; | ||
}; | ||
|
||
/** | ||
* Determine if this site is an WordPress.com on Atomic site. | ||
* | ||
* @return {boolean} True if the site is an WordPress.com on Atomic site, false otherwise. | ||
*/ | ||
export const isWoaHosting = (): boolean => { | ||
return Jetpack_Boost.site.host === 'woa'; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 4 additions & 0 deletions
4
projects/plugins/boost/changelog/update-page-cache-behavior-on-atomic
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
Significance: patch | ||
Type: changed | ||
|
||
Page Cache: Update notice for WP Cloud clients. |