block_block_info_alter() makes two identical queries on every page, we can cut those down to one cache_get(). The cache_block bin gets cleared when block admin pages are saved, so free cache clearing. Only saves one query with the default database cache, but it's on every page with block module enabled, and it's easy to do.

CommentFileSizeAuthor
block_cache_info_alter.patch1.87 KBcatch

Comments

catch’s picture

Status: Needs review » Needs work

The last submitted patch failed testing.

catch’s picture

Status: Needs work » Closed (duplicate)

Stupid, stupid me duplicating my own issue :( #646484: Cache queries from block_block_info_alter()