Title: Cache on page with php update script
Last modified: June 14, 2018

---

# Cache on page with php update script

 *  Resolved [AndreiD](https://wordpress.org/support/users/andreiro37/)
 * (@andreiro37)
 * [8 years ago](https://wordpress.org/support/topic/cache-on-page-with-php-update-script/)
 * I have a page template and i update in database the number of views at each visit.
 * How can i cache the page, but still increment the database post views at each
   visit?
 * The page views is an example, i will update other info with the php code.
 * thanks.

Viewing 1 replies (of 1 total)

 *  Plugin Author [Emre Vona](https://wordpress.org/support/users/emrevona/)
 * (@emrevona)
 * [8 years ago](https://wordpress.org/support/topic/cache-on-page-with-php-update-script/#post-10405706)
 * This is not possible because db and php does not work when the page is saved 
   as a static html file. You should do it via Ajax.

Viewing 1 replies (of 1 total)

The topic ‘Cache on page with php update script’ is closed to new replies.

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

 * 1 reply
 * 2 participants
 * Last reply from: [Emre Vona](https://wordpress.org/support/users/emrevona/)
 * Last activity: [8 years ago](https://wordpress.org/support/topic/cache-on-page-with-php-update-script/#post-10405706)
 * Status: resolved