Automattic / newspack-blocks

Gutenberg blocks for the Newspack project.
207 stars 43 forks source link

Dont cache blocks for staff #1929

Closed claudiulodro closed 3 weeks ago

claudiulodro commented 3 weeks ago

All Submissions:

Changes proposed in this Pull Request:

Note: This is a hotfix

This PR adjusts the block caching logic so that it only applies to readers and does not apply to staff.

How to test the changes in this Pull Request:

  1. You should get cached blocks as a logged out user.
  2. You should get cached blocks as a logged in reader (subscriber role or similar)
  3. You should not get cached blocks as a logged in editor or admin

Other information:

matticbot commented 3 weeks ago

:tada: This PR is included in version 4.3.2 :tada:

The release is available on:

Your semantic-release bot :package::rocket: