The WordPress code base has outgrown the defaults for opcache.memory_consumption and opcache.interned_strings_buffer
Nessuno ha ancora preso questa issue.
- Lingua principale
- C
- Stelle
- 40.4k
- Fork
- 8.1k
- Merge medio
- 2g 13h
- PR unite (30g)
- 96
Descrizione
Description
The WordPress code base has been growing, and it's now too big for the OPcache default sizes.
In php8.3 (on Ubuntu at any rate), the defaults, as you know, are (in MiB):
opcache.memory_consumption=128
opcache.interned_strings_buffer=8
WordPress 6.9.4 and 7.0beta4 both run these caches completely full for relatively simple sites. That means a typical WordPress site isn't getting all the benefit of caching, which hammers performance and frustrates server operators and site owners.
I respectfully suggest you double the memory_consumption default in future releases. And triple the interned_strings_buffer default. If you can do it, this change will, as it spreads out, save lots of server power and it will reduce carbon emissions.
(I'm working on a Site Health Check feature for WordPress to inform site owners about this issue. It's harder to communicate with server operators.)
https://github.com/rlerdorf/opcache-status shows the problem clearly on any site.
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Direzione di ricerca
Inizia con i valori predefiniti di configurazione di opcache.memory_consumption e opcache.interned_strings_buffer nel codice sorgente di PHP; l’issue non identifica alcun file o test. Esamina i valori PHP 8.3 riportati e usa lo strumento opcache-status collegato per riprodurre l’utilizzo della cache. Il lavoro è completato quando i valori predefiniti proposti sono stati valutati e sono coperti dai test di configurazione pertinenti.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- php
- Ambito
- performance
- Tipo di issue
- Funzionalità
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 35/100