I've installed WP Widget Cache, but there are no options to cache widgets with different content per page or per category.
Can I solve this problem or I need to seek for another plugin?
I've installed WP Widget Cache, but there are no options to cache widgets with different content per page or per category.
Can I solve this problem or I need to seek for another plugin?
How to do caching of widgets with different content per page:
Open widget-cache.php, then
Find: "currentCategory"=>array(&$this,'get_current_category'),
Add after: "currentPost"=>array(&$this,'get_current_post'),
Find: function get_widget_cache_key($id)
Add before:
function get_current_post(){
if(is_single()){
global $post;
return $post->ID;
}
return false;
}This topic has been closed to new replies.