Needs work
Project:
Acquia Purge
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
13 Dec 2021 at 14:30 UTC
Updated:
30 Dec 2021 at 10:05 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
alexmoreno commentedThis is just a port of: https://www.drupal.org/project/fastly/issues/2683775
Attach a first attempt, very simple just for the sake of testing the concept. To merge it will need at least an option to enable/disable the features, for example via setting variables with drush.
Comment #3
alexmoreno commentedAdding an option to enable/disable the feature
Comment #4
alexmoreno commentedComment #5
alexmoreno commentedJust enable from /admin/config/development/performance/purge/softpurge
If you have Purge UI enabled it will also show you a warning message
Comment #6
alexmoreno commenteda status message was invalidating cache, so I've removed that. See new patch attached.
Comment #7
alexmoreno commentedComment #8
wim leers🤔 This is a really weird permission name.
It doesn't follow the pattern of Drupal core's permissions.
Should be injected.
🐛 Leading tabs instead spaces.
🤓 Needs extra
\nin between.🐛 Copy/pasted stale comment.
🤔 Why final?
Why even have a constructor if there is nothing in there?
Huh? Why not:
?
🤔
So … the config is
?
That looks very very weird.
🤔 So … this is mixing old style PHP array syntax in with the new? Let's make this look sane.
🐛 Poorly placed line break.
🐛
First: this should've been injected.
Second: this is already available to you thanks to the base class!
🤔 Why not use
addWarning()?🐛
$enabledis not guaranteed to be a boolean.And … config schema is missing.