Skip to content

Skip caching class lists longer than 2 KB in html_cva() - #5042

Open
nicolas-grekas wants to merge 1 commit into
twigphp:3.xfrom
nicolas-grekas:cva-cache-size
Open

nicolas-grekas wants to merge 1 commit into
twigphp:3.xfrom
nicolas-grekas:cva-cache-size

Conversation

@nicolas-grekas

Copy link
Copy Markdown
Contributor

Follows #4984

The class list cache can contain up to 1,000 entries, but their size isn't limited. Skipping class lists longer than 2 KB keeps the cache under about 4 MB. The class lists of the Shadcn button recipe used in #4984 are at most about 1 KB, so they are still cached.

The cache can contain up to 1,000 entries, but their size wasn't limited. Not caching class lists longer than 2 KB keeps the cache under about 4 MB.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant