Title: Exclude PHP Code
Last modified: August 31, 2016

---

# Exclude PHP Code

 *  [linearwhiz](https://wordpress.org/support/users/linearwhiz/)
 * (@linearwhiz)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/exclude-php-code/)
 * Hi ,
 * Is it still possible to exclude specific php segments from being cached ? using
   <!– mfunc –>any PHP code<!– /mfunc –> ?
 * I am sorry if this has been repeated before , but the last I could find about
   it was a post about 5 years ago that says it’s in the FAQ , but couldn’t see 
   that in the FAQ
 * Thank you
 * [https://wordpress.org/plugins/w3-total-cache/](https://wordpress.org/plugins/w3-total-cache/)

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

 *  [Kimberly](https://wordpress.org/support/users/amiga500/)
 * (@amiga500)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/exclude-php-code/#post-7026389)
 * If you enable comment stripping then you could add `<!--` and `-->` around your
   PHP code segments and when w3tc goes about caching it will exclude them (or rather,
   behind the scenes it strips them).
 *  Thread Starter [linearwhiz](https://wordpress.org/support/users/linearwhiz/)
 * (@linearwhiz)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/exclude-php-code/#post-7026648)
 * Thanks , I will give that a try

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

The topic ‘Exclude PHP Code’ 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/)

 * 2 replies
 * 2 participants
 * Last reply from: [linearwhiz](https://wordpress.org/support/users/linearwhiz/)
 * Last activity: [10 years, 3 months ago](https://wordpress.org/support/topic/exclude-php-code/#post-7026648)
 * Status: not resolved