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

Feature/performance optimizations #8

Merged
merged 6 commits into from
Oct 16, 2024

Conversation

kevinmeijer97
Copy link
Member

If there's a lot of images on one page there could be some serious performance issues if the glide presets aren't already generated through the php please assets:generate-presets command.

This PR changes some things around, first we check if the manipulated image exists in the cache store, if so we return it.
If it doesn't exist we generate the image using a job which we can put on a queue in the background, while just showing the original image url on the frontend.

The next time the page is loaded, and the job has finished generating the image, the image will make use of its presets.

@kevinmeijer97 kevinmeijer97 merged commit bea7ee7 into master Oct 16, 2024
2 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