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.
| Comment | File | Size | Author |
|---|---|---|---|
| block_cache_info_alter.patch | 1.87 KB | catch |
Comments
Comment #1
catchhttp://drupal.org/node/631420
Comment #3
catchStupid, stupid me duplicating my own issue :( #646484: Cache queries from block_block_info_alter()