Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

perf: Cache snippets#7369

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Draft
distantnative wants to merge1 commit intodevelop-minor
base:develop-minor
Choose a base branch
Loading
fromperf/snippet-caching

Conversation

distantnative
Copy link
Member

Description

Avoid repeatedF::exists() and extension calls when using the same snippets within the request

Changelog

Performance

  • Snippets get cached for the duration of the request

Ready?

  • In-code documentation (wherever needed)
  • Unit tests for fixed bug/feature

For review team

  • Add changes & docs to release notes draft in Notion

@distantnativedistantnative added this to the5.1.0 milestoneJul 14, 2025
@distantnativedistantnative self-assigned thisJul 14, 2025

// start with a fresh version cache
// start with a fresh snippet and version cache
Snippet::resetCache();
Copy link
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

This will not work when someone replaces the snippet component with their own class. Have to think of an alternative.

Copy link
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

@bastianallgeier Do you see any way with the currentsnippet core component implementation to find out fromKirby\Cms\App what class is used for snippets?

@distantnativedistantnative added the needs: help 🙏Really needs some help on this labelJul 31, 2025
@distantnativedistantnative removed this from the5.1.0 milestoneAug 5, 2025
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

@distantnativedistantnative

Labels

needs: help 🙏Really needs some help on this

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

1 participant

@distantnative

[8]ページ先頭

©2009-2025 Movatter.jp