statamic / cms

The core Laravel CMS Composer package
https://statamic.com
Other
3.58k stars 489 forks source link

Stache Clear Slow #10295

Open DanielDarrenJones opened 3 weeks ago

DanielDarrenJones commented 3 weeks ago

Bug description

After upgrading to Statamic 5, clearing (or refreshing) the Stache is now very slow.

How to reproduce

php please stache:refresh

Logs

No response

Environment

Environment
Application Name: Pelorus
Laravel Version: 10.48.12
PHP Version: 8.2.19
Composer Version: 2.7.7
Environment: local
Debug Mode: ENABLED
URL: localhost
Maintenance Mode: OFF

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

Drivers
Broadcasting: log
Cache: redis
Database: mysql
Logs: stack / single
Mail: log
Queue: redis
Session: redis

Statamic
Addons: 8
Sites: 8 (Travel (GB), Travel (US), Aviation (GB), and 5 more)
Stache Watcher: Disabled
Static Caching: Disabled
Version: 5.7.3 PRO

Statamic Addons
aryehraber/statamic-captcha: 1.11.0
doefom/currency-fieldtype: 1.4.0
gerttimmerman/statamic-zapier: 1.6
jacksleight/statamic-bard-texstyle: 3.2.2
ndx/statamic-bard-color-picker: 2.0.0
ryanmitchell/statamic-translation-manager: 2.0.0
statamic/eloquent-driver: 4.2.0
withcandour/aardvark-seo: 5.0.0

Statamic Eloquent Driver
Asset Containers: eloquent
Assets: eloquent
Blueprints: file
Collection Trees: file
Collections: file
Entries: file
Forms: file
Global Sets: file
Global Variables: file
Navigation Trees: file
Navigations: file
Revisions: file
Taxonomies: file
Terms: file
Tokens: file

Installation

Fresh statamic/statamic site via CLI

Additional details

This is in the Pelorus Code base, I will send this across separately in a Zip to Jason.

o1y commented 3 weeks ago

Yeah, I can confirm this, clearing Stache is slow. That’s why I use

php please cache:clear
php please stache:warm
duncanmcclean commented 2 weeks ago

@DanielDarrenJones Are you able to send the .zip into support or push the changes up to the repository we already have access to? Thanks.

DanielDarrenJones commented 2 weeks ago

@duncanmcclean sent, thanks!

stianbotnan commented 1 week ago

Not sure it's related, but might be: We've upgraded a site to the latest version of Statamic and noticed a huge performance decrease. We're talking loading time (uncached locally) that went from 1s to 3s.

So far we have only been able to figure out at which version the performance issue startet, which is version 5.7.0. Tried to revert some of the changes in version 5.7.0, but not luck figuring out exactly where the issue is.

Downgrading to 5.6.2 solves the issues for us.

o1y commented 1 week ago

@stianbotnan I would recommend opening a new issue. It looks like there may have been a similar issue before, maybe that is related to your problem? #10286

stianbotnan commented 1 week ago

@o1y Thank you! It was related to my problem, and I had not upgraded to the 5.11.0 even though I said I was on the latest version (thought I was). The site is now back to where it should be in terms of performance 👍