Title: compatible?
Last modified: August 22, 2016

---

# compatible?

 *  [YannisK](https://wordpress.org/support/users/yannisk/)
 * (@yannisk)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/compatible-7/)
 * 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
 * [https://wordpress.org/plugins/hyper-cache/](https://wordpress.org/plugins/hyper-cache/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [Stefano Lissa](https://wordpress.org/support/users/satollo/)
 * (@satollo)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/compatible-7/#post-5766923)
 * Hyper Cache caches the whole page so no code is executed. If you need to execute
   code on every page load, you should use a two phase cache, I think wp-super-cache
   still implement that.
 * But to execute code you need to load all the wordpress stuff, hence the cache
   help is greatly reduced.

Viewing 1 replies (of 1 total)

The topic ‘compatible?’ is closed to new replies.

 * ![](https://ps.w.org/hyper-cache/assets/icon-256x256.png?rev=3452725)
 * [Hyper Cache](https://wordpress.org/plugins/hyper-cache/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/hyper-cache/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/hyper-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/hyper-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/hyper-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/hyper-cache/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Stefano Lissa](https://wordpress.org/support/users/satollo/)
 * Last activity: [11 years, 3 months ago](https://wordpress.org/support/topic/compatible-7/#post-5766923)
 * Status: not resolved