Skip to content

Improve OPcache performance guidance - #403

Open
ekamran wants to merge 3 commits into
WordPress:mainfrom
ekamran:shifteq/improve-opcache-guidance
Open

Improve OPcache performance guidance#403
ekamran wants to merge 3 commits into
WordPress:mainfrom
ekamran:shifteq/improve-opcache-guidance

Conversation

@ekamran

@ekamran ekamran commented Jun 6, 2026

Copy link
Copy Markdown
Contributor

What this changes

Expands the existing Opcode Cache guidance in the Performance page with practical OPcache notes for WordPress hosting environments.

This also updates the opcache entry on the Server Environment page so it describes bytecode caching and links back to the performance guidance.

Why

OPcache is already mentioned in the handbook, but the current guidance is brief. This adds more actionable information about production use, timestamp validation, deployment invalidation, monitoring, and shared-hosting security considerations.

Related issue

Fixes #293

@mindctrl mindctrl left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Left a question about opcache config.

Comment thread performance.md
@vairafiq

vairafiq commented Jul 2, 2026

Copy link
Copy Markdown

Solid expansion of the Opcode Cache section. The added detail on opcache.validate_timestamps and revalidate_freq, deployment invalidation, monitoring for memory and max_accelerated_files limits, and the tradeoffs between development and production is genuinely useful and actionable. I verified the two internal cross links resolve: performance.md#opcode-cache and security.md#opcache-security both match existing headings, so the shared hosting security pointer lands correctly. It reads well and stays consistent with the Server Environment entry. LGTM.

@kittenkamala kittenkamala left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work! Thank you so much. I made a few suggestions here for adjusting language. Otherwise I think this is good to go.

Comment thread performance.md Outdated
Comment thread performance.md Outdated
Comment thread performance.md Outdated
@github-project-automation github-project-automation Bot moved this from Todo to Changes Requested in WordPress Hosting Team Aug 12, 2026
Adopts kittenkamala's review suggestions: expand OPcache intro with
extension/version detail, soften production recommendation phrasing,
and clarify interned strings description.
@ekamran
ekamran force-pushed the shifteq/improve-opcache-guidance branch from 79129bb to 1a302a7 Compare August 12, 2026 21:25
@ekamran

ekamran commented Aug 12, 2026

Copy link
Copy Markdown
Contributor Author

Thanks @kittenkamala! Applied all three wording suggestions in 1a302a7 - ready for another look.

@kittenkamala kittenkamala added WCUS26 Worked on for WordCamp US 2026 Contributor Day ready to merge labels Aug 12, 2026
@kittenkamala kittenkamala moved this from Backlog to In review in Hosting Team WCUS 2026 Aug 12, 2026
@kittenkamala kittenkamala moved this from Changes Requested to Approved in WordPress Hosting Team Aug 12, 2026
@kittenkamala kittenkamala moved this from In review to Can Merge in Hosting Team WCUS 2026 Aug 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready to merge WCUS26 Worked on for WordCamp US 2026 Contributor Day

Projects

Status: Can Merge
Status: Approved

Development

Successfully merging this pull request may close these issues.

Create Zend OpCache guidance document

4 participants