Title: CDN &#8211; Push programmatically?
Last modified: August 21, 2016

---

# CDN – Push programmatically?

 *  [Jim Robinson](https://wordpress.org/support/users/jtrobinson/)
 * (@jtrobinson)
 * [13 years ago](https://wordpress.org/support/topic/cdn-push-programmatically/)
 * I am writing a file created whenever a particular type is saved. The file is 
   in custom files section of the CDN Push input box but I do not know how often
   it is checked / reuploaded. Is there a way to programmatically push the file 
   to the CDN with W3TC? A function or method that pushes a file, possibly defined
   as a parameter, to the CDN assigned in the W3TC settings?
 * [http://wordpress.org/extend/plugins/w3-total-cache/](http://wordpress.org/extend/plugins/w3-total-cache/)

Viewing 1 replies (of 1 total)

 *  Plugin Contributor [Frederick Townes](https://wordpress.org/support/users/fredericktownes/)
 * (@fredericktownes)
 * [13 years ago](https://wordpress.org/support/topic/cdn-push-programmatically/#post-3752178)
 * I recommend using an origin pull CDN and specifying a custom file path in the
   CDN settings, otherwise you have to use the auto-upload feature for origin push.

Viewing 1 replies (of 1 total)

The topic ‘CDN – Push 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/)

## Tags

 * [api](https://wordpress.org/support/topic-tag/api/)
 * [automation](https://wordpress.org/support/topic-tag/automation/)
 * [cdn](https://wordpress.org/support/topic-tag/cdn/)
 * [programming](https://wordpress.org/support/topic-tag/programming/)

 * 1 reply
 * 2 participants
 * Last reply from: [Frederick Townes](https://wordpress.org/support/users/fredericktownes/)
 * Last activity: [13 years ago](https://wordpress.org/support/topic/cdn-push-programmatically/#post-3752178)
 * Status: not resolved