Support » Plugin: WP Super Cache » [Plugin: WP Super Cache] Dynamic Cached WP-PostViews

  • Hi,
    I’m using WP-PostViews to show the number of views for each post on the homepage. I tried to make this number stays dynamic in this way:

    <!--mfunc the_views() -->
    <?php the_views() ?>

    But when I do a visit on a post and reload the homepage, it shows the same number (in the database the post’s views increased by one). However the right number is showed on the post page and it doesn’t have the code I wrote above. I’m using the PHP caching.

    What can I do?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Donncha O Caoimh


    Have you tried editing the the_views() function and using wp_mail() or error_log() to verify it’s being called?

    For performance reasons alone I wouldn’t use a plugin like that. Every pageview will write to the database which is slow. You’re better off using Google Analytics or Jetpack (or both!)

    Thanks for your suggestion!
    I installed jetpack, but how can I show the number of visits for each post? I can not find a function to do it.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: WP Super Cache] Dynamic Cached WP-PostViews’ is closed to new replies.