Active
Project:
Block Cache Alter
Version:
7.x-1.0
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
17 Dec 2013 at 14:41 UTC
Updated:
16 Mar 2017 at 01:56 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
fabianx commentedYeah, it is right, but not too big of a deal to leave old information in the database.
I am happy to accept a patch though - if someone wants to make one.
Comment #2
corentin.crouvisier commentedSame problem for me.
I've generate a simple patch based on .dev changes for this issue.
I thinks it would be important to add a cleanup script to remove entries from blockcache_alter table for removed blocks (disabled modules, programmatically disabled, ...).
Comment #3
fabianx commented.
Comment #4
nedjoIt would be good to be able to clear out the stale data when rows are deleted from the block table, but there doesn't appear to be a great way of doing so, since rows are deleted through various different calls in block module and potentially elsewhere.
_block_rehash()callsdrupal_alter('block_info',...)before deleting obsolete rows, so one option would be to respond to that and do the same. But a fuller solution would need to emulateblock_modules_uninstalled()and various other calls, and would still miss deletions in contrib.Comment #5
fabianx commented#2 is already applied, back to active.
Comment #6
devad commentedJust confirming that this issue is still relevant.
Tested with latest stabile 7.x-1.1 and Nodeblock module. After Node (and automatically nodeblock) is deleted - superfluous block data remains in blockcache_alter database table.
I'm also hiding patch #2 since it is implemented into 7.x-1.1 already and this issue needs new patch related to issue title.