getgrav / getgrav/grav-plugin-admin

Image cache

Open
#926 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
PHP
Stars
377
Forks
225
Avg merge
11h 51m
Merged PRs (30d)
4

Description

Hi again.

Working hard on Grav... Next issue:

While in admin with image cache enabled, plugins like resize-images and other image manipulations targeted for the uncached versions are rerouted and execute their work on the cached versions. That's contra-productive as all manipulations are lost once the cache is cleared and even some are never used, e.g. in the filepicker field.

The culprit for this is located in ImageMedium.php, in its constructor. Definitely it would be great for plugin authors to be able to control cache / nocache by hooking into an event to bypass temporarily the cache for media manipulations.

Regards.
uh

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.