Skip to content

clear memoized data when updating meta data - #120

Merged
rkoopmans merged 8 commits into
tinify:masterfrom
wcreateweb:stail-memoized-data
Jul 27, 2026
Merged

clear memoized data when updating meta data#120
rkoopmans merged 8 commits into
tinify:masterfrom
wcreateweb:stail-memoized-data

Conversation

@tijmenbruggeman

Copy link
Copy Markdown
Collaborator

fs data is memoized (private variables) and cached (statcache).
add_tiny_meta is called when compression starts and ends. This usually updates the file on disk, which should update the filesize.

This bug was visible in the media library as it showed, for example, 3 sizes compressed, 3 sizes to compress which would not be possible.

@rkoopmans
rkoopmans merged commit d89d563 into tinify:master Jul 27, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants