---
title: "[RFC] [Discussion] OPcache Static Cache"
url: https://daily.dev/posts/rfc-discussion-opcache-static-cache-bjelcmfkq
source_url: https://externals.io/message/131110
type: article
source: "externals.io"
published: 2026-06-02T15:58:46.068Z
updated: 2026-06-02T15:59:15.915Z
tags: ["php"]
reading_time: 112
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)** · 112 min read · 0 upvotes · 0 comments

## Summary

A PHP internals mailing list discussion about a proposed RFC for OPcache Static Cache — an OPcache-managed shared-memory cache for userland values and PHP static state. The proposal introduces volatile_* and persistent_* functions plus two 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, status API returning arrays vs objects), the default-off setting and its impact on library adoption, shared-hosting tenant isolation risks, key-space collision between libraries, and serialization behavior. The RFC author (Go Kudo) responded with several API improvements including explicit unlock functions, lease-based lock expiry, and a read-only StaticCacheInfo object for status APIs.

## Full article

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

## Similar posts on daily.dev

- [\[RFC\] \[Discussion\] OPcache Static Cache](https://daily.dev/posts/rfc-discussion-opcache-static-cache-ljxqkxkfe) · externals.io · 0 upvotes · 0 comments
- [\[RFC\] \[Discussion\] OPcache Static Cache](https://daily.dev/posts/rfc-discussion-opcache-static-cache-agsftdixu) · externals.io · 0 upvotes · 0 comments
- [\[RFC\] \[Discussion\] OPcache Static Cache](https://daily.dev/posts/rfc-discussion-opcache-static-cache-hexnkmuo3) · 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-bjelcmfkq)
