Title: Exclude specific pages from Optimize HTML Code
Last modified: August 24, 2016

---

# Exclude specific pages from Optimize HTML Code

 *  Resolved [mrpierce](https://wordpress.org/support/users/mrpierce/)
 * (@mrpierce)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/exclude-specific-pages-from-optimize-html-code/)
 * Hello,
 * Thank you for the wonderful plugin! It’s extremely useful.
 * Up until recently, I had the _Optimize HTML Code_ option set, and everything 
   was working great. However, I just learned that on a very specific page, modified
   for specific users, this feature caused the page to render completely blank (
   after taking a full minute to load).
 * Here’s the relevant entries from my debug log:
 *     ```
       [26-May-2015 17:05:15 UTC] PHP Fatal error:  Maximum execution time of 60 seconds exceeded in /var/www/wp-content/plugins/autoptimize/classes/external/php/minify-html.php on line 130
       [26-May-2015 17:05:15 UTC] PHP Fatal error:  Unknown: Cannot use output buffering in output buffering display handlers in Unknown on line 0
       ```
   
 * Under CSS Options, there’s a setting to _Exclude CSS from Autoptimize_. I’m wondering
   if there could be similar option to **exclude certain pages from HTML optimization**?
   Then I could just tell it to ignore this one page without sacrificing the benefit
   of compressing the others.
 * Thank you so much for your help!
 * [https://wordpress.org/plugins/autoptimize/](https://wordpress.org/plugins/autoptimize/)

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

 *  Plugin Author [Frank Goossens](https://wordpress.org/support/users/futtta/)
 * (@futtta)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/exclude-specific-pages-from-optimize-html-code/#post-6169510)
 * hi mrpierce;
    you can use the API to exclude a specific page from being optimized,
   there’s example-code of how that can be done in autoptimize_helper.php_example
   in the autoptimize directory.
 * hope this helps,
    frank
 *  Thread Starter [mrpierce](https://wordpress.org/support/users/mrpierce/)
 * (@mrpierce)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/exclude-specific-pages-from-optimize-html-code/#post-6169518)
 * Oh that’s wonderful – thank you so much, Frank!

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

The topic ‘Exclude specific pages from Optimize HTML Code’ is closed to new replies.

 * ![](https://ps.w.org/autoptimize/assets/icon-256X256.png?rev=2211608)
 * [Autoptimize](https://wordpress.org/plugins/autoptimize/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/autoptimize/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/autoptimize/)
 * [Active Topics](https://wordpress.org/support/plugin/autoptimize/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/autoptimize/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/autoptimize/reviews/)

## Tags

 * [exclude page](https://wordpress.org/support/topic-tag/exclude-page/)
 * [output buffer](https://wordpress.org/support/topic-tag/output-buffer/)

 * 2 replies
 * 2 participants
 * Last reply from: [mrpierce](https://wordpress.org/support/users/mrpierce/)
 * Last activity: [10 years, 10 months ago](https://wordpress.org/support/topic/exclude-specific-pages-from-optimize-html-code/#post-6169518)
 * Status: resolved