Title: Problem with custom plugin
Last modified: August 31, 2016

---

# Problem with custom plugin

 *  [kayosdesign](https://wordpress.org/support/users/kayosdesign/)
 * (@kayosdesign)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/problem-with-custom-plugin-1/)
 * Hi,
    I have a custom plugin on my site which sends a custom generated binary 
   file to the end user based on how the fill in a form. It’s all working well until
   after I enable W3TC. At which point something is turning the file from an 8MB
   download to an empty 0 byte file.
 * The plugin uses an endpoint
 *     ```
       add_action('init','dd_setup_endpoint');
       function dd_setup_endpoint() {
         add_rewrite_endpoint( 'demodownload', EP_ALL );
       }
       ```
   
 * And I have put exclusions in everythign I can find for /demodownload/*
    But I
   cannot figure out how to stop W3TC interferring with the file transfer.
 * Any suggestions would be appreciated.
 * D.
 * [https://wordpress.org/plugins/w3-total-cache/](https://wordpress.org/plugins/w3-total-cache/)

The topic ‘Problem with custom plugin’ 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: [kayosdesign](https://wordpress.org/support/users/kayosdesign/)
 * Last activity: [10 years, 3 months ago](https://wordpress.org/support/topic/problem-with-custom-plugin-1/)
 * Status: not resolved