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.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

tstoeckler’s picture

Status: Active » Needs review
FileSize
724 bytes

This 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.

  • netw3rker authored 2badbe8 on 8.x-3.x
    Issue #2352237 by netw3rker, tstoeckler: Allow clearing the libraries...

  • netw3rker authored 246dc41 on
    Issue #2352237 by netw3rker, tstoeckler: Allow clearing the libraries...

  • netw3rker authored 0761a58 on
    Issue #2352237 by netw3rker, tstoeckler: Allow clearing the libraries...
tstoeckler’s picture

Status: Needs review » Fixed

Tested 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

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.