Title: Execute PHP-script when cached&#8230;
Last modified: August 22, 2016

---

# Execute PHP-script when cached…

 *  Resolved [preddie](https://wordpress.org/support/users/preddie/)
 * (@preddie)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/execute-php-script-when-cached/)
 * I know it is not possible in this plugin to let parts of a page dynamic, but 
   there should be another solution for this.
 * Is it possible to combine PHP in a jacascript/ AJAX and add some stuff in the
   database when loading?
 * I’m searching for an examplecode to use with wordpress/ php. Just a simple script
   on the background that is executed every time a page runs, even when
    it’s cached.
   How can I do this?
 * [https://wordpress.org/plugins/wp-fastest-cache/](https://wordpress.org/plugins/wp-fastest-cache/)

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

 *  Plugin Author [Emre Vona](https://wordpress.org/support/users/emrevona/)
 * (@emrevona)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/execute-php-script-when-cached/#post-5357409)
 * this is not about plugin. You can write ajax and php for doing it. you can call
   ajax on the footer.php
 *  Thread Starter [preddie](https://wordpress.org/support/users/preddie/)
 * (@preddie)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/execute-php-script-when-cached/#post-5357527)
 * Tnx
 *  Plugin Author [Emre Vona](https://wordpress.org/support/users/emrevona/)
 * (@emrevona)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/execute-php-script-when-cached/#post-5357533)
 * your welcome

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

The topic ‘Execute PHP-script when cached…’ 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/)

 * 3 replies
 * 2 participants
 * Last reply from: [Emre Vona](https://wordpress.org/support/users/emrevona/)
 * Last activity: [11 years, 8 months ago](https://wordpress.org/support/topic/execute-php-script-when-cached/#post-5357533)
 * Status: resolved