[Plugin: WP Cache Block] Plugin ignores different block names
-
Hi, i wanted to use this plugin to cache few blocks on my page, but it doesn’t work as expected. I think this is a bug.
This is the code which in my template.
<?php if (wp_cacheblock_start('block-1')): ?> foo <?php endif; wp_cacheblock_end(); ?> <?php if (wp_cacheblock_start('block-2')): ?> bar <?php endif; wp_cacheblock_end(); ?>
Expected result: foo bar
Actual result: foo foo
I think the purpose of block name is to avoid specyfying unique key for each block, so this is my fix.
wp-cache-block:123
change$unique_key = '';
to$unique_key = 'cb_'.$blockname;
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘[Plugin: WP Cache Block] Plugin ignores different block names’ is closed to new replies.