Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Images get regenerated every time again? #14

Closed
bartrylant opened this issue Jun 14, 2022 · 1 comment
Closed

Images get regenerated every time again? #14

bartrylant opened this issue Jun 14, 2022 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@bartrylant
Copy link

It looks like every time I load a page, all the images get regenerated. Isn't Jitter saving transformed images of checking if they already exist?

@codewithkyle codewithkyle self-assigned this Jun 16, 2022
@codewithkyle codewithkyle added the bug Something isn't working label Jun 16, 2022
@codewithkyle
Copy link
Owner

I've tested Jitter 2.1 on Craft 4 with PHP 8.1 and the cached file response is working.

For testing I verified that the cache was working by tracking the image response times. Cached images would resolve in ~40ms while non-cached images would resolve in ~150ms. Along with this I also verified that the caching logic was working by modifying the source code to log a "cache hit" message.

Could you provide additional details such as an example of the twig snippet, also if you're caching files locally or on S3.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants