---
title: "[RFC] [Discussion] OPcache Static Cache"
url: https://daily.dev/posts/rfc-discussion-opcache-static-cache-y6gzngpd0
source_url: https://externals.io/message/131074
type: article
source: "externals.io"
published: 2026-06-01T11:54:12.500Z
updated: 2026-06-01T11:54:36.747Z
tags: ["php"]
reading_time: 62
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)** · 62 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, new OPcache namespace functions, and 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 objects vs arrays), the default-off setting and its impact on library adoption, shared-hosting tenant isolation challenges, multi-library key collision risks, and serialization behavior. The RFC author (Go Kudo) responded with several API improvements including explicit unlock functions, lease-based lock expiry, and granular cache entry deletion.

## Full article

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

## Similar posts on daily.dev

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

---

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

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