Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A Stache index file with wrong filename gets created on Stache:warm() #11323

Open
Krzemo opened this issue Jan 7, 2025 · 0 comments · May be fixed by #11324
Open

A Stache index file with wrong filename gets created on Stache:warm() #11323

Krzemo opened this issue Jan 7, 2025 · 0 comments · May be fixed by #11324
Labels

Comments

@Krzemo
Copy link

Krzemo commented Jan 7, 2025

Bug description

When running Stache:warm() a file storage/framework/cache/data/stache/indexes/entries/{{ collection_handle }}/collection gets created.

That file seems to be never used.

When making a first request to the site after stache:refresh, file storage/framework/cache/data/stache/indexes/entries/{{ collection_handle }}/collectionHandle is created. This is the correct file.

This can significantly add to response time depending on collection(s) size.

How to reproduce

  1. Run stache:refresh
  2. Go to storage/framework/cache/data/stache/indexes/entries/{{ collection_handle }}/ folder and list the files
  3. Make a request to a page iterating through collection entries ({{ collection }} tag)
  4. Check stache folder from point 2 again - collectionHandle file should be there now

Logs

No response

Environment

Environment
Application Name: ainews
Laravel Version: 11.34.2
PHP Version: 8.3.15
Composer Version: 2.8.3
Environment: local
Debug Mode: ENABLED
URL: ainews-v5.test
Maintenance Mode: OFF
Timezone: UTC
Locale: en_US

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

Drivers
Cache: file
Database: pgsql
Logs: stack / single
Mail: smtp
Queue: sync
Session: file

Statamic
Addons: 2
Sites: 1
Stache Watcher: Disabled
Static Caching: half
Version: 5.45.0 PRO

Statamic Addons
statamic/collaboration: 1.0.0
statamic/seo-pro: 6.4.0

Installation

Fresh statamic/statamic site via CLI

Additional details

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants