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 respectivepurge
module plugins. - The change provides the following plugins:
-
uri
invalidation plugin -
varnish_image
purger plugin -
varnish_image
queuer plugin
-
- When an entity with image fields is updated, the
varnish_image_purge.varnish_image_queuer
service identifies the image fields, gathers URIs of said image fields, creates the invalidations of typeuri
and adds to the queue. - A
varnish_image
purger 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_image
queue plugin configuration form. - File
varnish_focal_point_purge.module
is removed as all image styles are handled byvarnish_image_purge
module.
Edited by Raimonds