245a246
> 	global $theme;
255c256,267
<     $block = module_invoke($r->module, 'block', 'view', $r->mod_delta);
---
> 
>     // load this block for both the block module and the blockcache module
>     $get_block = db_fetch_object(db_query("SELECT * FROM {blocks} WHERE delta = '%d' AND module = 'block' AND theme = '%s'", $r->mod_delta, $theme));
>     $block_data = db_fetch_object(db_query("SELECT * FROM {blocks} WHERE delta = %d AND module = 'blockcache' AND theme = '%s'", $delta, $theme));
> 
>     // our blockcache copy of the block contains the region we want to use
>     $get_block->region = $block_data->region;
> 
> 	  // this is done to use any custom templates this block has
>     $block = Array('content' => theme('block', $get_block));
> 
>     // package the block for db storage and figure out its life span
256a269
> 
268d280
< 
334c346
< }
\ No newline at end of file
---
> }
