Skip to content

Member Content: Cache Page IDs and URLs with Member Content enabled#1139

Merged
n7studios merged 10 commits into
mainfrom
cache-restrict-content-page-id-url
Jul 21, 2026
Merged

Member Content: Cache Page IDs and URLs with Member Content enabled#1139
n7studios merged 10 commits into
mainfrom
cache-restrict-content-page-id-url

Conversation

@n7studios

@n7studios n7studios commented Jul 17, 2026

Copy link
Copy Markdown
Contributor

Summary

Adds a class and tests to store an array of Post ID => relative URLs of Pages, Posts and Custom Posts that have the Member Content functionality enabled.

This will be used to automatically configure caching Plugins to not cache Member Content pages, which need caching disabled in order to determine whether to display member-only content or visitor content - for example, #1140

Testing

  • RestrictContentCacheTest: Adds integration tests to confirm the cache updates depending on Pages added/edited/deleted and whether they have Member Content functionality configured.

Checklist

@n7studios n7studios self-assigned this Jul 17, 2026
@github-actions

Copy link
Copy Markdown

WordPress Playground

🚀 Your PR has been built and is ready for testing in WordPress Playground!

Click here to test your changes in WordPress Playground

@n7studios
n7studios requested review from a team, ciccio-kit and noelherrick and removed request for a team July 18, 2026 06:08
@n7studios
n7studios marked this pull request as ready for review July 18, 2026 06:08
…e-exclude-cache

Member Content: Exclude Pages from Siteground Speed Optimizer's Cache
@n7studios
n7studios merged commit 4858452 into main Jul 21, 2026
81 of 96 checks passed
@n7studios
n7studios deleted the cache-restrict-content-page-id-url branch July 21, 2026 07:10
@github-actions

Copy link
Copy Markdown

WordPress Playground

🚀 Your PR has been built and is ready for testing in WordPress Playground!

Click here to test your changes in WordPress Playground

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants