Needs review
Project:
URLs queuer
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
28 Jun 2017 at 18:55 UTC
Updated:
30 Mar 2023 at 15:01 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
rgristroph commentedHere's a first attempt at at patch. Would love to hear feedback.
Comment #3
kylesloan2 commentedI ran into the same issue where a public search form would make a new entry and keep compounding. Every time an admin would edit a page, every search ever done would be put into the purge queue table. I also saw the edit urls for admins were making it into the queue. I will test this out later today and let you know if it works for me.
Thanks for submitting a patch.
Comment #4
kylesloan2 commentedHm I applied the patch, uninstall/re-installed module, cleared drupal cache, and am not seeing any configuration options in the drupal back office anywhere. What is the URL I can hit to see if the config screen is working?
Comment #5
tannerg commented/admin/config/development/performance/purge
Click "Add queuer" and select and "URL queuer"
You should see an extra set of configurations at the bottom of the modal that pops up.
It worked for me.
Comment #6
kylesloan2 commentedThank you for those directions to getting to the admin side.
I tested and all the options worked for me.
Thanks for all the work on this.
Comment #7
rgristroph commentedJust bumping this . . . it has been used and reviewed by the people on the team I work with, but maybe with another review it could go to RTBC ?
Comment #8
bsains commented@rgristroph 2 Issues here -
1. Incorrect config form variable name for setting - line 108 was blacklist_items_tags_count instead of blacklist_tags_items_count - this blocked the addition of more than one cache tag to the black list.
2. Having no items in the blacklist returned an empty set of cache tags in applyTagsBlacklist, which in turn caused 500 errors.
I've rerolled the patch and attached an interdiff.
Comment #9
gordon commentedrerolled for 1.0
Comment #10
gordon commentedFix up an issue I found in the reroll.
Comment #11
agilmore87 commentedHi, small issue with the patch, it will add an allowed tag to the array of cleaned tags once for every prefix checked, so I'm getting duplicate tags in the database. I'm attaching an update to the patch to fix this.
Comment #13
kolin commentedWe should also respect the blacklist when queueing urls for purging.
This will allow for blacklisted tags to be added when there are already items in the traffic registry.