Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
From what I can tell, the only reason the expire dependency exists is for the expire_print_r() function.
Attached patch copies this function locally and removes the dependency.
Comment | File | Size | Author |
---|---|---|---|
#7 | remove_expire_dependency-1442996-7.patch | 2.61 KB | wwhurley |
#5 | remove_expire_dependency-1442996-5.patch | 2.81 KB | wwhurley |
remove_expire_dependency.patch | 2.47 KB | msonnabaum | |
Comments
Comment #1
anavarreI've tested this patch and can confirm this removes the dependency.
Comment #2
SqyD CreditAttribution: SqyD commentedI'll address this in the 2.x branch. Should also take #1474876: Error Messages "Notice: Undefined index: host in purge_urls() (line 27 of [...]modules/purge/purge.inc)" being displayed into account.
Comment #3
kscheirerThis is still a problem, and purge 2.x looks far away, can this get into the next release?
Comment #4
SqyD CreditAttribution: SqyD commentedOkay, okay, okay... You've convinced me... Will do this... sigh. :-)
Planning for a 1.7 release that will drop the dependency on expire, have functionality to add domains (thus also work when the module calling the expire hook doesn't supply a domain in the url)... should be out in a few weeks. I would appreciate a backport to 6.x since I strive to keep D6 and D7 versions in sync.
BTW: purge 2.x is surprisingly function, just not done yet.
Comment #5
wwhurley CreditAttribution: wwhurley commentedAttached is a re-roll of the patch to work with the latest 7.x-1.x branch.
Comment #6
kscheirerThis chunk of the patch should be removed. Leaving the issue as RTBC though, it's a trivial fix.
Comment #7
wwhurley CreditAttribution: wwhurley commentedRe-rolled to remove packaging script information.
Comment #8
SqyD CreditAttribution: SqyD commentedPatch committed to 7.x-1.x branch. Thanks!