Closed (fixed)
Project:
Acquia Purge Varnish - API V2
Version:
8.x-1.2
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
1 Apr 2021 at 19:37 UTC
Updated:
27 Jun 2024 at 22:20 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
vigneshvalliappan commentedI have dynamically checked the application's name using the Acquia environment variable ($_ENV['AH_SITE_GROUP']). By this, we can get the current application's UUID and clear the varnish cache for a particular application.
Comment #3
andikanio commentedI found an application name doesn't match with AH_SITE_GROUP (case sensitive),
I just insert a case insensitive condition to fix it.
Comment #4
hkumar4 commentedThanks for the patch what I have noticed that AH_SITE_GROUP doesn't necessarily match with $getAppUuid_item['name'] and it results in failed condition. I was thinking to enhance this patch to include a field in the form to pass the Application_Name which would have higher priority than $_ENV['AH_SITE_GROUP']. In case the Application Name is not set in the form we can fall back to $_ENV['AH_SITE_GROUP']
Comment #5
hkumar4 commentedI have added a patch with changes and also added admin route and fixed the purge form menu configuration so that it appears on config menu.
Comment #6
flashwebcenterHello,
Thank you all for your work. I included the application name and I updated the module with an extra field. All the work was added to https://www.drupal.org/project/acquia_purge_varnish/releases/8.x-1.4
Best wishes,
Alaa
Comment #7
flashwebcenterComment #8
flashwebcenter