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.
Drupal 5 has no block cache in core, so when sites go upgraded from d5 to d6 the book module forgets to set cache parameter for own block.
By default blocks.cache is BLOCK_CACHE_PER_ROLE but for book module it should be
$block[0]['info'] = t('Book navigation');
$block[0]['cache'] = BLOCK_CACHE_PER_PAGE | BLOCK_CACHE_PER_ROLE;
So here the patch for D7 and D6
I put this update in extra section because of many sites have D6 and #278592: Sync 6.x extra updates with HEAD
Comment | File | Size | Author |
---|---|---|---|
book_upgrade_D6.patch | 855 bytes | andypost | |
book_upgrade_path.patch | 844 bytes | andypost | |
Comments
Comment #1
andyposttagged
Comment #2
cburschkaupdate_sql() doesn't actually exist in D7 anymore. This doesn't look right...
Comment #3
andypostThis patch is outdated for D7 and really needs work because http://api.drupal.org/api/function/system_update_6027/6 not always works.
Attempts to reproduce, with varying success...
Comment #4
Anonymous (not verified) CreditAttribution: Anonymous commentedI'm going to guess this is a won't fix for D6, since D6 commits focus on security fixes at this point.
Comment #5
andypostNot sure about backport but currently we have broken cache for book.module after D6 migration and no upgrade patch