You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have installed the Google Cloud Plugin, a user noticed an issue when using the 'Edit Image' functionality.
When performing a rotate or crop, the thumbnails don't get generated with the newly updated image.
We did some investigation, and we think it is related to the cache behaviour of GCP (https://cloud.google.com/storage/docs/consistency#cache-control). We observed that the code generating the thumbnails was operating on a version of the image that wasn't the most recently edited version.
We dropped the 'Cache Duration' setting down to 1 second and added a sleep of 10 seconds in the AssetsController, and then the thumbnails generated, after the image was edited, were correct.
We also tested a local filesystem to make sure there wasn't some issue with our Craft installation and the image editing functionality worked as expected.
Steps to reproduce
Install Google Cloud Plugin
Create new Cloud Storage Filesystem with cache duration of 30days.
Make a new volume with the previously created filesystem.
Upload image to new volume
Edit image and rotate vertically
Thumbnails will not be updated
The text was updated successfully, but these errors were encountered:
Description
Hi,
We have installed the Google Cloud Plugin, a user noticed an issue when using the 'Edit Image' functionality.
When performing a rotate or crop, the thumbnails don't get generated with the newly updated image.
We did some investigation, and we think it is related to the cache behaviour of GCP (https://cloud.google.com/storage/docs/consistency#cache-control). We observed that the code generating the thumbnails was operating on a version of the image that wasn't the most recently edited version.
We dropped the 'Cache Duration' setting down to 1 second and added a sleep of 10 seconds in the AssetsController, and then the thumbnails generated, after the image was edited, were correct.
We also tested a local filesystem to make sure there wasn't some issue with our Craft installation and the image editing functionality worked as expected.
Steps to reproduce
The text was updated successfully, but these errors were encountered: