| #
b021f0b4 |
| 27-Jan-2022 |
Andreas Gohr <andi@splitbrain.org> |
correctly (re)cache modified images
The previous code used to cache the result of resize and crop image operations indefinitely. They only time these caches were refreshed were when the original sou
correctly (re)cache modified images
The previous code used to cache the result of resize and crop image operations indefinitely. They only time these caches were refreshed were when the original source changed.
This meant that changes in configuration (eg. the image quality setting) were never applied to existing images, neither were changes/improvements in the resizing code.
This patch introduces a new Cache class for these kind of modification results.
It also removes more duplicated code in media_resize_image and media_crop_image. Future refactorings may move this code into File\MediaFile
This code should also fix currently weird results for plugin and screenshot in the extension manager - TBH I am not 100% sure what happened there but refreshing the cache once seems to solve the problem.
show more ...
|