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.
Libraries uses a custom cache bucket, but doesn't declare that to Drush. Therefore when a "drush cc all" happens, the libraries cache doesn't get cleared and rebuilt.
Attached is the patch to add drush cc libraries support.
Comment | File | Size | Author |
---|---|---|---|
#1 | 2352237-1-drush-cc-libraries.patch | 724 bytes | tstoeckler |
Comments
Comment #1
tstoecklerThis is awesome! I didn't know this was possible, thanks!
I fixed up the patch a little bit:
- Put the functions in the existing drush file
- Called libraries_flush_caches() instead of hardcoding the cache bin name
- Fixed docs
@netw3rker can you try if this works for you as well? I tested it locally and it seems fine.
Comment #5
tstoecklerTested this again and it still worked so committed this. I renamed the function to have "drush" in it, as it could be a bit confusing otherwise.
Thanks!
7.x-2.x
7.x-3.x
8.x-3.x