Title: Create page cache programmatically?
Last modified: December 29, 2017

---

# Create page cache programmatically?

 *  [Alejandro Benavente](https://wordpress.org/support/users/bnvt/)
 * (@bnvt)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/create-page-cache-programmatically/)
 * Is there any function in the plugin that triggers the creation of a browser cache
   for a particular post?
    What I’m trying to achieve is for a cache file to be 
   created for a post automatically once it gets posted, rather than when it gets
   viewed by some visitor later on. I know how to hook into the post creation hook
   to trigger a function; but I’m missing the W3TC function to do this, if any.
 * Any ideas?
    Thanks a lot!

The topic ‘Create page cache programmatically?’ is closed to new replies.

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

 * 0 replies
 * 1 participant
 * Last reply from: [Alejandro Benavente](https://wordpress.org/support/users/bnvt/)
 * Last activity: [8 years, 5 months ago](https://wordpress.org/support/topic/create-page-cache-programmatically/)
 * Status: not resolved