Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Stache Watcher not working

Open
#12,824 1 comment 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
38/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
laravel, php
Domain
backend

Research direction

Start by tracing how STATAMIC_STACHE_WATCHER=auto handles filesystem changes after an entry is deleted. Reproduce the report by creating an entry in the CP, deleting its file, and checking the CP; compare with clearing the stache. Done means the deleted entry no longer appears in listings or remains editable.

Written by the indexing model from the issue text.

Description

stache
Bug description

I have STATAMIC_STACHE_WATCHER set to auto locally, and I've deleted some collection entries in the file system. However, the listings in the CP still show the entries, and those are even editable. Clearing the stache fixes it.

How to reproduce
  • Ensure the stache watcher is enabled
  • Create an entry via CP
  • Delete the entry in the file system
  • Have a look at the CP
Logs
-
Environment
Environment
Application Name: handschin & handschin
Laravel Version: 12.35.0
PHP Version: 8.4.13
Composer Version: 2.8.11
Environment: local
Debug Mode: ENABLED
URL: statamic-handschin.test
Maintenance Mode: OFF
Timezone: UTC
Locale: en

Cache
Config: NOT CACHED
Events: NOT CACHED
Routes: NOT CACHED
Views: CACHED

Drivers
Broadcasting: log
Cache: file
Database: sqlite
Logs: stack / single
Mail: log
Queue: sync
Session: file

Storage
public/storage: NOT LINKED

Livewire
Livewire: v3.6.4

Statamic
Addons: 3
Sites: 1
Stache Watcher: Enabled
Static Caching: Disabled
Version: 6.0.0-alpha.14 PRO

Statamic Addons
marcorieser/statamic-livewire: dev-statamic-6
marcorieser/statamic-vitals: dev-statamic-6
marcorieser/tailwind-merge-statamic: dev-statamic-6
Installation

Fresh statamic/statamic site via CLI

Additional details

v5 to v6 updated

Dominant language
PHP
Stars
4.9k
Forks
647
Avg merge
1d 9h
Merged PRs (30d)
102

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from statamic/cms

All issues in statamic/cms

Similar issues

More PHP issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.