It’s a great idea to use wp built in cache.
On line 218 i think it should be:
public function get_key_string();
I want to ask: what about clearing cache when post have been renewed.
Thank you.
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;
Finally a cache plugin that does not cache everything! I have tried 4 different cache plugins and they all effect my CPM ads! This is the only one that doesn’t.
Just a few points.
1. the tmp file is not emptyed, even when flushing the cache!
2. how long are things cached? Can we please set this in admin?
3. is it possible to set cache time per area?
4. When deactivating the plugin, can you please remove the /tmp folder and all its content?
Thank you for creating this plugin!
]]>