Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Parallel Stache warming produces inconsistent Stache `_indexes`

Aperta
#13,261 3 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
45/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Tranquilla
Stack tecnologico
php

Direzione di ricerca

Start by reading the parallel Stache warming change in PR #12894, then enable parallel_processing with the fork concurrency driver and run the Stache warm command. Compare storage/framework/cache/data/stache/indexes/**/_indexes across repeated runs and with the v5.69.0 output. Done means the indexes are consistent between runs and the reported difference is addressed; the performance concern may need to be treated separately.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

stache
Bug description

After enabling the new parallel Stache warming (introduced in v5.70.0), the generated Stache _indexes become inconsistent between runs and differ from the output produced in the versions before the PR.

How to reproduce
  • Enable parallel Stache warming (e.g. parallel_processing = true, concurrency_driver = fork) on 5.70.0.
  • Run the Stache warm command and check storage/framework/cache/data/stache/indexes/**/_indexes

v5.69.0:
Indexes are not changing when running the stache warm command multiple times.

9999999999a:1:{i:0;s:4:"path";}

v5.70.0:
Indexes are changing when running the stache warm command multiple times.

9999999999a:2:{i:0;s:4:"path";i:1;s:2:"id";}
Logs

Environment
5.70.0
Installation

Fresh statamic/statamic site via CLI

Additional details

Also it seems parallel processing does not improve stache warm performance (I don't see any significant difference in all of my projects). Because most entries live in collections, and collections are warmed in a single process (one store per process), the parallelization provides little / no real concurrency. The smaller stores finish quickly, leaving most cores idle while the main collection store warms sequentially..

Lingua principale
PHP
Stelle
4.9k
Fork
647
Merge medio
1g 7h
PR unite (30g)
103

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di statamic/cms

Tutte le issue di statamic/cms

Issue simili

Altre issue su PHP

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.