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/) 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) 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 7 years, 4 months ago by .
- This topic was modified 7 years, 4 months ago by .
- This topic was modified 7 years, 4 months ago by .
- This topic was modified 7 years, 4 months ago by . Reason: put code in backticks
The page I need help with: [log in to see the link]
- The topic ‘Exclude uing’ is closed to new replies.