Skip to content

Stache Clear Slow #10295

Closed
Closed

Description

@DanielDarrenJones

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.

Activity

  1. o1y commented on Jun 13, 2024

    @o1y
    Contributor

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

    php please cache:clear
    php please stache:warm
  2. changed the title [-][5.x] Stache Clear Slow[/-] [+]Stache Clear Slow[/+] on Jun 13, 2024
  3. duncanmcclean commented on Jun 17, 2024

    @duncanmcclean
    Member

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

  4. DanielDarrenJones commented on Jun 17, 2024

    @DanielDarrenJones
    ContributorAuthor

    @duncanmcclean sent, thanks!

  5. stianbotnan commented on Jun 26, 2024

    @stianbotnan

    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.

  6. o1y commented on Jun 26, 2024

    @o1y
    Contributor

    @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

  7. stianbotnan commented on Jun 26, 2024

    @stianbotnan

    @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 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions