Title: [Plugin: WP Super Cache] Dynamic Cached WP-PostViews
Last modified: August 20, 2016

---

# [Plugin: WP Super Cache] Dynamic Cached WP-PostViews

 *  [Satiro](https://wordpress.org/support/users/satiro/)
 * (@satiro)
 * [14 years, 3 months ago](https://wordpress.org/support/topic/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() ?>
       <!--/mfunc-->
       ```
   
 * 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?
 * [http://wordpress.org/extend/plugins/wp-super-cache/](http://wordpress.org/extend/plugins/wp-super-cache/)

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

 *  Plugin Author [Donncha O Caoimh (a11n)](https://wordpress.org/support/users/donncha/)
 * (@donncha)
 * [14 years, 3 months ago](https://wordpress.org/support/topic/plugin-wp-super-cache-dynamic-cached-wp-postviews/#post-2558832)
 * 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 WordPress.com Jetpack (or both!)
 *  Thread Starter [Satiro](https://wordpress.org/support/users/satiro/)
 * (@satiro)
 * [14 years, 3 months ago](https://wordpress.org/support/topic/plugin-wp-super-cache-dynamic-cached-wp-postviews/#post-2558863)
 * 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.

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

 * 2 replies
 * 2 participants
 * Last reply from: [Satiro](https://wordpress.org/support/users/satiro/)
 * Last activity: [14 years, 3 months ago](https://wordpress.org/support/topic/plugin-wp-super-cache-dynamic-cached-wp-postviews/#post-2558863)
 * Status: not resolved