Title: [Plugin: WP Super Cache] wp-cache-config.php output
Last modified: August 20, 2016

---

# [Plugin: WP Super Cache] wp-cache-config.php output

 *  [jevets](https://wordpress.org/support/users/jevets/)
 * (@jevets)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/plugin-wp-super-cache-wp-cache-configphp-output/)
 * Donncha,
 * It appears that when WP Super Cache generates the config file wp-cache-config.
   php it leaves a closing php tag and an empty line at the end of the file.
 *     ```
       ?>
       ```
   
 * This seemed to break <!–dynamic-cache-content–> and mfunc/mclude in my testing.
 * Just a quick note that you may want to double check the file generation for that
   extra output. In the site I’m working on, I’m using lots of output buffering,
   and it’s a combination of magento and wp, sharing assets across both, so my issue
   may be completely due to my site.
 * But that output should probably be removed.
 * Thanks,
    Steve
 * [http://wordpress.org/extend/plugins/wp-super-cache/](http://wordpress.org/extend/plugins/wp-super-cache/)

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

 *  Plugin Author [Donncha O Caoimh (a11n)](https://wordpress.org/support/users/donncha/)
 * (@donncha)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/plugin-wp-super-cache-wp-cache-configphp-output/#post-2358025)
 * This is probably something on your site as the default config file doesn’t have
   an extra carriage return at the end of the file. Did you edit the file in notepad?
 *  Thread Starter [jevets](https://wordpress.org/support/users/jevets/)
 * (@jevets)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/plugin-wp-super-cache-wp-cache-configphp-output/#post-2358027)
 * I use sublime text2 and vim.
 * I just tested on a fresh install of WP 3.2.1, and sure enough, there’s a closing
   php tag and a carriage return.
 *  Plugin Author [Donncha O Caoimh (a11n)](https://wordpress.org/support/users/donncha/)
 * (@donncha)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/plugin-wp-super-cache-wp-cache-configphp-output/#post-2358030)
 * Can you download the plugin again or even just open wp-cache-config-sample.php
   in Vim. Does that have the carriage return?
 * The wp_cache_replace_line() function replaces existing lines without modifying
   them. Only new lines have a “\n” added to them so I don’t understand how the 
   CR was added. Perhaps you can test? Replace the config file with the default 
   one and see what happens? Obviously keep the settings backed up too!
 *  Thread Starter [jevets](https://wordpress.org/support/users/jevets/)
 * (@jevets)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/plugin-wp-super-cache-wp-cache-configphp-output/#post-2358032)
 * It was a fresh install of WP and a fresh install of the plugin via auto WP plugin
   installer.
 * The plugin’s default wp-cache-config-sample.php does not have the carriage return
   in vim, but it does show up in TextMate and Sublime Text2. Strange…
 * I’ve just removed the closing php tag completely. Wonder if anyone else sees 
   this same odd behavior.

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

The topic ‘[Plugin: WP Super Cache] wp-cache-config.php output’ is closed to new
replies.

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

 * 4 replies
 * 2 participants
 * Last reply from: [jevets](https://wordpress.org/support/users/jevets/)
 * Last activity: [14 years, 7 months ago](https://wordpress.org/support/topic/plugin-wp-super-cache-wp-cache-configphp-output/#post-2358032)
 * Status: not resolved