Issue #3172194: Images are queued and purged via plugins
This is an improved version of MR !8 created by @jjcarrion.
This merge request provides the following changes:
- The image purging logic is moved from
varnish_image_purge_entity_update()into respectivepurgemodule plugins. - The change provides the following plugins:
-
uriinvalidation plugin -
varnish_imagepurger plugin -
varnish_imagequeuer plugin
-
- When an entity with image fields is updated, the
varnish_image_purge.varnish_image_queuerservice identifies the image fields, gathers URIs of said image fields, creates the invalidations of typeuriand adds to the queue. - A
varnish_imagepurger plugin can be configured to process invalidations of typeuri. This is the plugin where logic is moved fromvarnish_image_purge_entity_update()function. - Varnish Image Purge configuration form is moved from a separate page to the
varnish_imagequeue plugin configuration form. - File
varnish_focal_point_purge.moduleis removed as all image styles are handled byvarnish_image_purgemodule.
Edited by Raimonds
