The WordPress code base has outgrown the defaults for opcache.memory_consumption and opcache.interned_strings_buffer
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- C
- Sterne
- 40.4k
- Forks
- 8.2k
- Ø Merge
- 2 T. 13 Std.
- Gemergte PRs (30 T.)
- 96
Beschreibung
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.
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Beginnen Sie mit den Konfigurationsstandards für opcache.memory_consumption und opcache.interned_strings_buffer im PHP-Quellcode; das Issue nennt keine Datei und keinen Test. Überprüfen Sie die gemeldeten PHP 8.3-Werte und verwenden Sie das verknüpfte opcache-status-Tool, um die Cache-Nutzung zu reproduzieren. Als abgeschlossen gilt die Aufgabe, wenn die vorgeschlagenen Standards bewertet und durch die relevanten Konfigurationstests abgedeckt sind.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- php
- Bereich
- performance
- Issue-Typ
- Feature
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 35/100