• Resolved AlanBee

    (@alanbee)


    Hi,

    I trying to understand why the cache preload is set as it should be, not doing anything. I have tried every single way that I have fund on the web and nothing is getting the preload option to work.

    Any insights?

    Thank you all,
    Alan

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

    (@vmarko)

    Hello,
    I am sorry you are experiencing this but I am happy to assist you.
    Can you please share the screenshot of the Cache Preload settings in W3 Total Cache?
    Also, can you please share more details on how you established that Cache Preload is not working?

    Thread Starter AlanBee

    (@alanbee)

    Hi Marko,

    Thank you for your reply and help.

    This is my screenshot:

    View post on imgur.com

    I see on the server folder that Cached Files are crated only is I visit the website (I don’t have a lot of visitors right now). If the Cache Preload was working I would have seen the Cached Files are crated automatically.

    * I have tried to use in the site map the full url and only /sitemap_index.xml. Both didn’t work for me.

    Hope you can help.

    Thanks,
    Alan

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @alanbee,
    According to your settings batch of 10 pages will be created every hour, so depending on the number of pages it can take some time. I suggest you lower the update interval and wait for the preload to finish.
    I.E. if you set the update interval to 900s and you have 50 pages, your website will be cached in one hour and 15 minutes.

    Thread Starter AlanBee

    (@alanbee)

    Hi Marko,

    I have 25 pages and I have set the interval to 900s. If I clean the cache and no visiter will go in, when do I need to expect to see the preload files on my server?
    How can I make sure that the cached files will always stay worm?

    I don’t need to change the content often. Maybe once a month.

    Thank you very much fro your help.

    Alan

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @alanbee,
    If you have set 10 pages per interval that means that your entire website will be preloaded in 37-38 minutes.
    What the Cache preload does is:
    – Check the last offset
    – Check how many URLs are allowed to be processed per run
    – Fetch all URLs from sitemap (even nested sitemaps work)
    – Loop through a set of URLs to visit them
    If the end of the list is reached, it will start from the beginning in the next run. That means that when the last page is reached, it will start from the beginning with the first 10 pages and so on.

    Thread Starter AlanBee

    (@alanbee)

    Hi Marko,

    Thank you for you detailed answer. It is much appreciated.

    I have done a check and let the site work all day and night. I had few users and from a list of 25 active woocommerce product, I see that only 17 has been cached (on the server folder). So I entered the site and clicked on a non cached page, and it was cached on the server right away. This means that the even with 24 Hours, the cache preload didn’t work, am I wrong?

    Also. when I check the site using incognito, it seams that I’m getting the cached version, but not a worm one as it is taking it 3-5 sec to load (site very optimized and A A on Gmetrix).

    Any ideas?

    Thank you very much.

    Alan

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello,
    Can you please check if your sitemap contains all the pages?

    Thread Starter AlanBee

    (@alanbee)

    Hi,

    I have Yoast for the sitemap XML. When I check the link to the sitemap, I see:
    https://www.example.co.il/sitemap_index.xml

    This url has 10 sitemaps. Post, page,product and so on. For each one if I click it, I see the pages url.

    It it o.k?

    Thanks.

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @alanbee,

    You should add logging. Logging is available in wp-cli now.

    You should call it directly via
    wp w3-total-cache pgcache_prime

    And track the output which pages/sitemap positions are primed by script.

    Thread Starter AlanBee

    (@alanbee)

    Hi Marko,

    I don’t know how to do that. Any chance that you can direct me?

    Thank you,
    Alan

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @alanbee,

    Please check this link for guidance about WP-CLI. It contains a lot of information and tips.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘cache preload’ is closed to new replies.