Title: Views not counted with Comet Cache enabled
Last modified: August 31, 2016

---

# Views not counted with Comet Cache enabled

 *  [George Florea Banus](https://wordpress.org/support/users/fbgm/)
 * (@fbgm)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/views-not-counted-with-comet-cache-enabled/)
 * Hi!
 * Views are not correctly counted when the caching plugin Comet Cache is enabled.
 * Counter Mode is set to javascript.
 * [Graph down cache enabled, graph up cache disabled](http://i.imgur.com/AA2a1XM.png)
 * [Settings](http://i.imgur.com/OvVWBPA.png)
 * [https://wordpress.org/plugins/post-views-counter/](https://wordpress.org/plugins/post-views-counter/)

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Author [dFactory](https://wordpress.org/support/users/dfactory/)
 * (@dfactory)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/views-not-counted-with-comet-cache-enabled/#post-7320292)
 * Do you experience any JS issues?
    Can you share a link to your site?
 *  Thread Starter [George Florea Banus](https://wordpress.org/support/users/fbgm/)
 * (@fbgm)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/views-not-counted-with-comet-cache-enabled/#post-7320294)
 * Do you have a mail I can send it to?
 *  Plugin Author [dFactory](https://wordpress.org/support/users/dfactory/)
 * (@dfactory)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/views-not-counted-with-comet-cache-enabled/#post-7320299)
 * Yes: [https://www.dfactory.eu/](https://www.dfactory.eu/)
 *  Anonymous User 12851872
 * (@anonymized-12851872)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/views-not-counted-with-comet-cache-enabled/#post-7320532)
 * Hi,
 * I have
    – Counting mode: PHP and a code in my child theme functions.php file
 *     ```
       /* Posts View Counter*/
       add_action( 'wp_footer', 'wpr_reload_ajax', PHP_INT_MAX );
       function wpr_reload_ajax()
       {
       ?><script>
       var request = window.XMLHttpRequest ? new XMLHttpRequest() : new ActiveXObject('Microsoft.XMLHTTP');
       request.open( 'GET', window.location+'?<?php echo time(); ?>=1', true );
       request.send();
       </script><?php
       }
       ```
   
 * everything works fine with my plugin WP Fastest Cache Cache, even before the 
   Cache plugin Zencache.
    code I found there [http://blog.wp-rocket.me/fr/compatible-plugin-compteur-vues/](http://blog.wp-rocket.me/fr/compatible-plugin-compteur-vues/)

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Views not counted with Comet Cache enabled’ is closed to new replies.

 * ![](https://ps.w.org/post-views-counter/assets/icon-256x256.png?rev=2973820)
 * [Post Views Counter](https://wordpress.org/plugins/post-views-counter/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/post-views-counter/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/post-views-counter/)
 * [Active Topics](https://wordpress.org/support/plugin/post-views-counter/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/post-views-counter/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/post-views-counter/reviews/)

 * 4 replies
 * 3 participants
 * Last reply from: Anonymous User 12851872
 * Last activity: [10 years, 1 month ago](https://wordpress.org/support/topic/views-not-counted-with-comet-cache-enabled/#post-7320532)
 * Status: not resolved