compatible?
-
Hi,
I use hyper cache for 4 small sites and i’m a fan of this plugin!
Now i would like to use hypercache but my server runs nginx.There is any problem because i read some posts for compatibility problems.
Also i use this code for pupular posts. With other plugins i used fragment cache but this IS NOT cache 😛function wpb_set_post_views($postID) { $count_key = 'wpb_post_views_count'; $count = get_post_meta($postID, $count_key, true); if($count==''){ $count = 0; delete_post_meta($postID, $count_key); add_post_meta($postID, $count_key, '0'); }else{ $count++; update_post_meta($postID, $count_key, $count); } } //To keep the count accurate, lets get rid of prefetching remove_action( 'wp_head', 'adjacent_posts_rel_link_wp_head', 10, 0); function wpb_track_post_views ($post_id) { if ( !is_single() ) return; if ( empty ( $post_id) ) { global $post; $post_id = $post->ID; } wpb_set_post_views($post_id); } add_action( 'wp_head', 'wpb_track_post_views');Of i switch to hypercache what changes i must do to track popular posts?
I have 45.210 posts.
I’ll have a problem or no?Thanks,
Yannis
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘compatible?’ is closed to new replies.