• Hello support,

    I’m using WP Super Cache expert config on a full nginx woocommerce webshop. I’m running about 10 woocommerce shops on my own VPS with 6 vCPU’s and 16GB memory and full SSD.

    This in the nginx directive config I have for every webshop in Plesk:

    set $cache_uri $request_uri;
    
    # POST requests and urls with a query string should always go to PHP
    if ($request_method = POST) {
    	set $cache_uri 'null cache';
    }
    if ($query_string != "") {
    	set $cache_uri 'null cache';
    }
    
    # Don't cache uris containing the following segments
    if ($request_uri ~* "(/wp-admin/|/xmlrpc.php|/wp-(app|cron|login|register|mail).php|wp-.*.php|/feed/|index.php|wp-comments-popup.php|wp-links-opml.php|wp-locations.php|sitemap(_index)?.xml|[a-z0-9_-]+-sitemap([0-9]+)?.xml)") {
    	set $cache_uri 'null cache';
    }
    
    # Don't use the cache for logged in users or recent commenters
    if ($http_cookie ~* "comment_author|wordpress_[a-f0-9]+|wp-postpass|wordpress_logged_in") {
    	set $cache_uri 'null cache';
    }
    
    # Use cached or actual file if they exists, otherwise pass request to WordPress
    location / {
    	try_files /wp-content/cache/supercache/$http_host/$cache_uri/index.html $uri $uri/ /index.php ;
    }

    Now the cache is working perfect when the page has been visited one time and it configured a static html file. However, I want to preload all pages and tax’s once a day. My woocommerce shops have products ranging from 800 to 20.000. I update all these products once or twice a week with WP All Import so they don’t change too much.

    The problem is that when I start preloading (1440min on timer) it starts and just randomly stops. It can make files from 200 to 3000 but there is no consistency. I have moved my WP-Cron to real cron jobs and it triggers every 3 minutes correctly. I have no idea how to fix this or what I’m doing wrong. I just want every product, page, post and category be cached and once a day refreshed.

    One thing that I also find weird is the statistics:

    WP-Cache (135.31KB)

    233 gecachte pagina’s
    3009 verlopen pagina’s

    WP-Super-Cache (0KB)

    0 gecachte pagina’s
    0 verlopen pagina’s

    I’m not sure why it’s not creating (or seeing it as) super cached pages? I want super cached pages only, not normal cached pages. When I go to a product on FTP level for instance:

    /httpdocs/wp-content/cache/supercache/123zorghulp.nl/product/abena-abri-flex-l2-14-stuks

    I have two files:
    meta-wp-cache-652ba4e87101ee561f45733b3876d626.php
    wp-cache-652ba4e87101ee561f45733b3876d626.php

    So long story short; how can I succesfully generate preloaded super cached files consitently every day.

    If you need anymore info, please ask.

    Best regards,

    Jurmen

    The page I need help with: [log in to see the link]

  • The topic ‘Preload not loading all pages (stuck?)’ is closed to new replies.