Title: Exclude uing
Last modified: October 26, 2017

---

# Exclude uing

 *  Resolved [outdoorphoto](https://wordpress.org/support/users/outdoorphoto/)
 * (@outdoorphoto)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/exclude-uing/)
 * A year ago I posted an enquiry asking about excluding pages that do not originate
   from our Blog.
    We are running an online shop ([https://www.outdoorphoto.co.za/](https://www.outdoorphoto.co.za/))
   that integrates our Blog into some of our pages. Since my enquiry the provided
   solution has been to include “<!–[wpfcNOT]–>” in the body of any page that should
   not be cached. It seems as if though this functionality stopped working? On product
   pages such as ([https://www.outdoorphoto.co.za/gopro-hero6-black-action-camera](https://www.outdoorphoto.co.za/gopro-hero6-black-action-camera))
   we include articles from our Blog running in a subfolder. However, with or without
   the “<!–[wpfcNOT]–>” variable in the body there seems to be no difference. Is
   this expected?
 * Furthermore and more to the point, I am trying to integrate a module onto our
   home page that pulls WordPress data using WordPress functionality by including
   it in the following way:
 *     ```
       echo "<!–[wpfcNOT]–>";
       require_once(root . "/blog/integration.php");
       ```
   
 * And in that file I have:
 *     ```
       define('WP_USE_THEMES', false);
       require_once("wp-load.php");
       wpLatestArticles(){
       ...
       }
       ```
   
 * However, despite adding the no-caching-variable/comment it seems the integration
   simply crashes our home page. When I deactivate caching in the WordPress admin
   the integration succeeds. However we do not wish to deactivate caching to allow
   for this sort of integration.
 * **I have deactivated caching to prevent the page from crashing.**
    -  This topic was modified 8 years, 7 months ago by [outdoorphoto](https://wordpress.org/support/users/outdoorphoto/).
    -  This topic was modified 8 years, 7 months ago by [outdoorphoto](https://wordpress.org/support/users/outdoorphoto/).
    -  This topic was modified 8 years, 7 months ago by [outdoorphoto](https://wordpress.org/support/users/outdoorphoto/).
    -  This topic was modified 8 years, 7 months ago by [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/).
      Reason: put code in backticks
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fexclude-uing%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [Emre Vona](https://wordpress.org/support/users/emrevona/)
 * (@emrevona)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/exclude-uing/#post-9623495)
 * You can exclude the page as below.
 * [http://www.wpfastestcache.com/features/exclude-page/](http://www.wpfastestcache.com/features/exclude-page/)
 *  Thread Starter [outdoorphoto](https://wordpress.org/support/users/outdoorphoto/)
 * (@outdoorphoto)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/exclude-uing/#post-9623540)
 * Good day Emre,
    Thank you for your reply, however the built in functionality 
   unfortunately doesn’t cover our issue since it limits page exclusions to pages
   on the blog itself. This feature doesn’t allow me to specify URL’s outside of
   our blog.
 * For instance, I would be able to simply exclude:
    [https://www.outdoorphoto.co.za/blog/pages](https://www.outdoorphoto.co.za/blog/pages)
 * But I am unable to exclude the following examples:
    [https://www.outdoorphoto.co.za/](https://www.outdoorphoto.co.za/)
   [https://www.outdoorphoto.co.za/gopro-hero6-black-action-camera](https://www.outdoorphoto.co.za/gopro-hero6-black-action-camera)
 *  Plugin Author [Emre Vona](https://wordpress.org/support/users/emrevona/)
 * (@emrevona)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/exclude-uing/#post-9629579)
 * did you clear cache after adding an exclude rule?
 *  Thread Starter [outdoorphoto](https://wordpress.org/support/users/outdoorphoto/)
 * (@outdoorphoto)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/exclude-uing/#post-9635849)
 * I have cleared the cache before, after and during.
    However, mentioning the exclude
   rule I am not sure I am describing the problem correctly. We are running a wordpress
   blog at ([https://www.outdoorphoto.co.za/blog/](https://www.outdoorphoto.co.za/blog/)).
   We are running an online shop (not wordpress) at ([https://www.outdoorphoto.co.za](https://www.outdoorphoto.co.za)).
 * Your exclude feature only allows me to exclude pages on the blog, which is running
   in a subfolder, “/blog/”. Whatever I add to the input in the exclusion list is
   added as “…/blog/whatever”.
    As I am sure you understand, this means that I cannot
   add to the exclusion list pages that are not originating from the blog itself.
 * Previously you have advised that I use “<!–[wpfcNOT]–>”. However this seems to
   no longer be working.
 * The following line appears in the changelog for version 0.7.9:
    “[wpfcNOT]” shortcode
   has been converted to the image Optimisation of CSS minify
    -  This reply was modified 8 years, 7 months ago by [outdoorphoto](https://wordpress.org/support/users/outdoorphoto/).
    -  This reply was modified 8 years, 7 months ago by [outdoorphoto](https://wordpress.org/support/users/outdoorphoto/).
    -  This reply was modified 8 years, 7 months ago by [outdoorphoto](https://wordpress.org/support/users/outdoorphoto/).
      Reason: added changelog version
 *  Thread Starter [outdoorphoto](https://wordpress.org/support/users/outdoorphoto/)
 * (@outdoorphoto)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/exclude-uing/#post-9635909)
 * Emre,
 * In your file exclude.php I can find the following line:
    `return "<?php echo 
   home_url();?>" + "/" + request_uri;`
 * Changing this line to the following allows me to exclude our online shop’s absolute
   URL ([https://www.outdoorphoto.co.za/](https://www.outdoorphoto.co.za/)). In 
   doing so my problem has been solved.
 *     ```
       // Default WPFC Code
       //return "<?php echo home_url();?>" + "/" + request_uri;
   
       // ODP Modified Code
       return request_uri;
       ```
   
    -  This reply was modified 8 years, 7 months ago by [outdoorphoto](https://wordpress.org/support/users/outdoorphoto/).
 *  Plugin Author [Emre Vona](https://wordpress.org/support/users/emrevona/)
 * (@emrevona)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/exclude-uing/#post-9638650)
 * can you tell me the which pages you wanna exclude?
 *  Thread Starter [outdoorphoto](https://wordpress.org/support/users/outdoorphoto/)
 * (@outdoorphoto)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/exclude-uing/#post-9639854)
 * I would like to **exclude** any pages on our online shop, which is here:
    [https://www.outdoorphoto.co.za/](https://www.outdoorphoto.co.za/)
 * I would like to **include** any pages on our blog, which is here:
    [https://www.outdoorphoto.co.za/blog/](https://www.outdoorphoto.co.za/blog/)
 * Our shop is not cached by default. But as you should be able to see I’ve pulled
   WordPress functionality into our shop.
 * My issue has been **solved** however by modifying your exclude.php file.
    -  This reply was modified 8 years, 7 months ago by [outdoorphoto](https://wordpress.org/support/users/outdoorphoto/).
      Reason: marked as resolved
 *  Plugin Author [Emre Vona](https://wordpress.org/support/users/emrevona/)
 * (@emrevona)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/exclude-uing/#post-9641726)
 * that’s nice.

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

The topic ‘Exclude uing’ is closed to new replies.

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

## Tags

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

 * 8 replies
 * 2 participants
 * Last reply from: [Emre Vona](https://wordpress.org/support/users/emrevona/)
 * Last activity: [8 years, 7 months ago](https://wordpress.org/support/topic/exclude-uing/#post-9641726)
 * Status: resolved