Beans default to DRUPAL_CACHE_PER_ROLE caching. It would be handy to specify this per bean type, or per block. There may be another module out there that lets you do this on a per block basis, but I'm not aware of one and don't seem to be able to find it if it does exist. If not, this functionality may be better off in a separate module.

Files: 
CommentFileSizeAuthor
#6 bean_type_cache-1216580-6.patch3.62 KBalexweber
FAILED: [[SimpleTest]]: [MySQL] Unable to apply patch bean_type_cache-1216580-6.patch. Unable to apply patch. See the log in the details link for more information.
[ View ]
#2 bean_type_cache-1216580-2.patch3.66 KBindytechcook
FAILED: [[SimpleTest]]: [MySQL] Unable to apply patch bean_type_cache-1216580-2.patch. Unable to apply patch. See the log in the details link for more information.
[ View ]

Comments

Just found this http://drupal.org/project/blockcache_alter. However it may still be good to allow people to specify the default type of caching for custom block types.

Status:Active» Needs review
StatusFileSize
new3.66 KB
FAILED: [[SimpleTest]]: [MySQL] Unable to apply patch bean_type_cache-1216580-2.patch. Unable to apply patch. See the log in the details link for more information.
[ View ]

Checkout this patch. It's pretty much untested

Status:Needs review» Closed (duplicate)

Status:Closed (duplicate)» Needs review

I'm reopening this because it's a small step in the core block add replacement.

Status:Needs review» Needs work

Patch doesn't apply anymore against 7.x-1.x

Status:Needs work» Needs review
StatusFileSize
new3.62 KB
FAILED: [[SimpleTest]]: [MySQL] Unable to apply patch bean_type_cache-1216580-6.patch. Unable to apply patch. See the log in the details link for more information.
[ View ]

Patch re-rolled to apply cleanly on 7.x-1.x, not sure whether it works at all.

Can't we provide an optional dependency on http://drupal.org/project/blockcache_alter ? Maybe we can integrate the interface, but I don't think we should reinvent the wheel (unless core blocks are the wheel).

@barraponto,

I do like the idea of not repeating ourselves. I took a look at blockcache_alter and it just does form_alters on the block configure form. There really isn't an API to hook into.

@alexweber, THanks!

Status:Needs review» Needs work

@indytechcook np! :) The patch actually applies but doesn't work as advertised, it seems the original patch was a work in progress...