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.
When I attempt to clear cache on one of my sites via drush, the clear never completes. With drush cc, i went down the list of caches and found that it was the metatag cc that was causing the hang. Using drush @alias cc metatag --d, i see that the process stops at:
Calling drush_metatag_cache_clear_token_info() [2.47 sec, 41.3 MB]
It's been sitting there for 30 minutes now.
Has anyone encountered this before, and if so, what's the cause of the hang up?
Thanks!
Comments
Comment #2
DamienMcKennaWhat version of Drush are you using? What does the "--d" argument do? I don't see it in the version of Drush I'm using (8.x branch from a few weeks ago).
Comment #3
mulderjoe CreditAttribution: mulderjoe commentedHi Damian,
Thank you for responding. I'm on drupal 7.52 and using drush version 6.0-dev.
--d is the debug output for drush. Got that from here: https://www.drupal.org/drush-faq
Comment #4
DamienMcKennaAh, thanks. Here's what I get:
So it's working out of the box, might there be some custom code installed on your site that's interfering with it? I can't imagine the version of Drush you have would affect it, given that the "cc" command works for other cache bins.
How large is the {cache_metatag} table?
Comment #5
mulderjoe CreditAttribution: mulderjoe commentedI think you're right in that there is some other interference. The cache metatag table is 0.03MB. Basically empty. So that's not the issue.
Is there a way to determine where the hangup is? Here's a copy of my debug output:
And there it hangs.
I was hoping someone ran into an issue with this before, or had seen something like it. I'm not sure I'm doing anything too crazy with the metatag setup, but I had noticed that whenever i ran updb or cc all, that it would either take periodically longer times each time or never return. All of my other sites (not multisite) run just fine.
Comment #6
mulderjoe CreditAttribution: mulderjoe commentedokay, it seems to be resolved. I upgraded to drush 8.1.7, which didn't seem to help - at first. I did drush cc metatag, and it hung for > 1 hour. I then ran it in a new shell with debug, and it went through! I've tried several times now, and it seems to work.
I'm not sure what needed to happen, but i guess we can mark this resolved.
Thank you for your help.
Comment #7
mulderjoe CreditAttribution: mulderjoe commentedComment #8
DamienMcKennaGlad to hear the problem is solved, hopefully this issue will help anyone else who runs into this problem that the solution is to update Drush.