After moving a site from /sites/SITE1.COM
to /sites/SITE2.COM
normally only a "drush rr" via Registry Rebuild is necessary.
However, in this case it appears that Registry Rebuild does not affect the advagg_files table. I tried the following without success:
drush advagg-clear-all-files
drush advagg-clear-db-cache
drush cron
drush advagg-cron
All of the previous site's entries are sadly still in the table. This appears to be a bug, since the following issue fixed domain changes, however did not affect multi-site domain changes: #2353811: Aggregated CSS/JS references the domain it was generated on.
Is there a workaround for now? Would truncating the "advagg_files" be sufficient? Thanks in advance.
Comment | File | Size | Author |
---|---|---|---|
#5 | advagg-2831695-4-truncate-advagg_files-on-rr.patch | 705 bytes | mikeytown2 |
Comments
Comment #2
mikeytown2 CreditAttribution: mikeytown2 commentedTruncating the table should fix the issue. Wonder if AdvAgg could hook into RR and do it when that is called.
Comment #3
mikeytown2 CreditAttribution: mikeytown2 commentedhttps://api.drupal.org/api/drupal/modules%21system%21system.api.php/func... might do what we need.
Looks like pre_flush_all_caches
http://cgit.drupalcode.org/registry_rebuild/tree/registry_rebuild.drush....
Is the ticket though
Comment #5
mikeytown2 CreditAttribution: mikeytown2 commented