Title: Exclude WooCommerce Dynamically
Last modified: August 13, 2020

---

# Exclude WooCommerce Dynamically

 *  Resolved [Blueshot](https://wordpress.org/support/users/feitan/)
 * (@feitan)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/exclude-woocommerce-dynamically/)
 * Hi,
 * We have several pages in our site that contains the `WooCommerce shortcode`. 
   This means that those pages were not created by WooCommerce by default.
 * What I want to happen is that I want to exclude those pages that contain WooCommerce
   shortcode `dynamically`.
 * Currently, I exclude those pages manually by writing the url to `Exclusions` 
   text area to tell Hummingbird `not to cache specific URLs`, or any part URLs 
   that contain certain strings.
 * Any help is greatly appreciated. Thanks.

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

 *  Plugin Support [Amin – WPMU DEV Support](https://wordpress.org/support/users/wpmudev-support2/)
 * (@wpmudev-support2)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/exclude-woocommerce-dynamically/#post-13277226)
 * Hello [@feitan](https://wordpress.org/support/users/feitan/) ,
 * I’m afraid that Hummingbird doesn’t have option to exclude pages that have certain
   shortcodes automatically.
    Maybe you could create a specific template that would
   be used for those pages with the shortcodes, that would be by default not cached,
   please check this example [https://premium.wpmudev.org/forums/topic/hummingbird-definedonotcachepage-true-for-specific-page/#post-3715635](https://premium.wpmudev.org/forums/topic/hummingbird-definedonotcachepage-true-for-specific-page/#post-3715635)
   with use of
 * `define('DONOTCACHEPAGE', true);`
 * kind regards,
    Kasia
 *  Thread Starter [Blueshot](https://wordpress.org/support/users/feitan/)
 * (@feitan)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/exclude-woocommerce-dynamically/#post-13287441)
 * Hi Kasia,
 * Thank you for your response. I will probably do what you said above.
 * Regards,
    Feitan
    -  This reply was modified 5 years, 9 months ago by [Blueshot](https://wordpress.org/support/users/feitan/).

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

The topic ‘Exclude WooCommerce Dynamically’ is closed to new replies.

 * ![](https://ps.w.org/hummingbird-performance/assets/icon-256x256.gif?rev=2633221)
 * [Hummingbird Performance - Cache & Page Speed Optimization for Core Web Vitals | Critical CSS | Minify CSS | Defer CSS Javascript | CDN](https://wordpress.org/plugins/hummingbird-performance/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/hummingbird-performance/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/hummingbird-performance/)
 * [Active Topics](https://wordpress.org/support/plugin/hummingbird-performance/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/hummingbird-performance/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/hummingbird-performance/reviews/)

## Tags

 * [cache](https://wordpress.org/support/topic-tag/cache/)
 * [hummingbird](https://wordpress.org/support/topic-tag/hummingbird/)

 * 2 replies
 * 2 participants
 * Last reply from: [Blueshot](https://wordpress.org/support/users/feitan/)
 * Last activity: [5 years, 9 months ago](https://wordpress.org/support/topic/exclude-woocommerce-dynamically/#post-13287441)
 * Status: resolved