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.
External web service requests can be expensive to run inline within a page request. This patch adds the ability to queue these operations rather than request them immediately.
Comment | File | Size | Author |
---|---|---|---|
#1 | share_count-add_queue-2214349-1.patch | 6.12 KB | erikwebb |
Comments
Comment #1
erikwebb CreditAttribution: erikwebb commentedComment #2
Ken Hawkins CreditAttribution: Ken Hawkins commentedA very needed feature.
Two comments:
1) I was very confused at first, but was able to implement the patch manually -- you seem to have rolled it in reverse.
2) I've just opened issue #2228673: Is this maintained? Perhaps better to use Social Stats -- it seems this module needs a new co-maintainer. But I stopped short of sending a request after spotting the Social Stats module that seems to do all Share Count does, and then some (like using cron).
Comment #3
q0rban CreditAttribution: q0rban at Lullabot for Cisco Systems commentedThe problem I foresee with this feature is that the entity may no longer exist when the queue runs, whereas without the queue, this would not be an issue. Also, the patch needs to be re-rolled as it no longer applies.
Comment #4
q0rban CreditAttribution: q0rban at Lullabot for Cisco Systems commentedAnother issue discovered with this patch is that on a busy website, queued items get duplicated hundreds, even thousands of times. I think it'd be best to have a dedicated database table for the queue.