• Resolved T4ng

    (@schwipps)


    As I have a lot of blog posts, and’d rather like to focus on my pages performance, I would like to exclude posts from being automatically preloaded.

    I tried the RegEx way in “Never cache the following pages”, setting the pattern to my blog posts. My post being located in /news/ or /en/news/, is site:
    news/\*
    en/\news/\*

    According to my server logs, after saving and purging caches, posts keep being warmed up.

    As I can only set a single sitemap, that means I can only ask for all website pages caching… or a single Yoast sub sitemap (so for example, all my pages but no products, nor categories or nor product categories, …).

    How can I get round these limitation?

    Thanks

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @schwipps,

    You need to make other non-public sitemap file and feed W3 Total Cache with it. OR – call those pages via crontab: curl http://my-website.com/mypage/

    Thread Starter T4ng

    (@schwipps)

    OK, I can give it a shot to the no-public sitemap methoud.
    The curl method is not relevant in our case, because Cloudfront might catch the request.

    Any reason why the pattern didn’t exclude these pages?

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello,

    If you are using Cache Preload with the sitemap, then excluding pages will have no effect. If you, however, do not use cache preload then you can exclude those pages from being cached by adding them to “Never cache the following pages”

    Thread Starter T4ng

    (@schwipps)

    Ok, thanks for clarifying!

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

The topic ‘Exclude posts from preload’ is closed to new replies.