---
title: "[RFC] [Discussion] OPcache Static Cache"
url: https://daily.dev/posts/rfc-discussion-opcache-static-cache-pwq3yetol
source_url: https://externals.io/message/131146
type: article
source: "externals.io"
published: 2026-06-04T17:27:39.432Z
updated: 2026-06-04T17:28:04.278Z
tags: ["php"]
reading_time: 155
upvotes: 0
comments: 0
language: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# [RFC] [Discussion] OPcache Static Cache

**[externals.io](https://daily.dev/sources/externals)** · 155 min read · 0 upvotes · 0 comments

## Summary

A PHP internals mailing list discussion about a proposed RFC for OPcache Static Cache, which would add an OPcache-managed shared-memory cache for userland values and PHP static state. The RFC introduces volatile and persistent backends with new OPcache namespace functions and attributes (#[OPcache\VolatileStatic] and #[OPcache\PersistentStatic]) that allow static properties and method static variables to survive across requests. Key discussion points include API design concerns (lock symmetry, atomic decrement behavior, serialization semantics), the default-off setting and its impact on library adoption, shared-hosting tenant isolation challenges, key-space collision risks between libraries, and development-mode behavior. The RFC author (Go Kudo) updated the proposal to address several concrete issues including adding unlock functions, lease-based lock expiry, a typed StaticCacheInfo return object, and per-entry deletion support.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://externals.io/message/131146>

## Similar posts on daily.dev

- [\[RFC\] \[Discussion\] OPcache Static Cache](https://daily.dev/posts/rfc-discussion-opcache-static-cache-knpvjldu8) · externals.io · 0 upvotes · 0 comments
- [\[RFC\] \[Discussion\] OPcache Static Cache](https://daily.dev/posts/rfc-discussion-opcache-static-cache-eysjgsywr) · externals.io · 0 upvotes · 0 comments
- [\[RFC\] \[Discussion\] OPcache Static Cache](https://daily.dev/posts/rfc-discussion-opcache-static-cache-cdfpgptuu) · externals.io · 0 upvotes · 0 comments
- [\[RFC\] \[Discussion\] OPcache Static Cache](https://daily.dev/posts/rfc-discussion-opcache-static-cache-hh1it13cj) · externals.io · 0 upvotes · 0 comments
- [\[RFC\] \[Discussion\] OPcache Static Cache](https://daily.dev/posts/rfc-discussion-opcache-static-cache-y6gzngpd0) · externals.io · 0 upvotes · 0 comments

---

Tags: [#php](https://daily.dev/tags/php)

[View this post on daily.dev](https://daily.dev/posts/rfc-discussion-opcache-static-cache-pwq3yetol)
