Subscription block stops caching for admin users #38152
Labels
[Feature] Subscriptions
All subscription-related things such as paid and unpaid, user management, and newsletter settings.
[Plugin] Jetpack
Issues about the Jetpack plugin. https://wordpress.org/plugins/jetpack/
[Plugin] Super Cache
A fast caching plugin for WordPress.
[Pri] Low
Triaged
[Type] Bug
When a feature is broken and / or not performing as intended
Impacted plugin
Jetpack
Quick summary
The Subscriptions block at extensions/blocks/subscriptions/subscriptions.php sets DONOTCACHEPAGE on line 1033 when an admin user is logged in regardless of whether a subscription block is being shown on the current page.
ref: p1707741294383739/1707737397.873219-slack-C016BBAFHHS
Steps to reproduce
A clear and concise description of what you expected to happen.
The page should be cached as WP Super Cache is configured to allow it.
What actually happened
The page was not cached.
Impact
Some (< 50%)
Available workarounds?
Yes, easy to implement
Platform (Simple and/or Atomic)
No response
Logs or notes
Instead of checking for the admin user, it should probably check for the subscription cookie, I think. I haven't used the premium features of this block and I'm not 100% certain how it works.
The text was updated successfully, but these errors were encountered: