• Resolved futureyoon

    (@futureyoon)


    hi

    3 questions

    1. sitemap URL format should be
    /sitemap_index.xml
    or
    https://mydomain.com/sitemap_index.xml
    ?

    2. the sitemap_index.xml is nested xml generated from yoast. I wish to cache only page.xml and post.xml
    Is it possible to add with a commaa like page.xml, post.xml ?

    3. how do i validate/check whether or not a page has been already cached based on sitemap i key in above?

    Thank you

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

    (@vmarko)

    Hello @futureyoon

    Thank you for reaching out and I am happy to assist you with this.
    1. It should be the entire URL: https://mydomain.com/sitemap_index.xml
    2. You can only add a single sitemap URL – You cannot add a comma as the preload is based on the entire URL.
    In this case, you should create a custom sitemap, containing only the pages you want to be preloaded and add it to the Sitemap URL: field. Check with Yoast if they have an option like this or check this article for more assistance.
    3. The Preload is based on the wp_cron and the schedule set in the Preload options. So you can check the wp-content/cache/disk_enhanced/yourwebsite.com/ folder and see which pages are preloaded, or better use WP-CLI
    so, instead of calling wp-cron via crontab – you should call it directly via
    wp w3-total-cache pgcache_prime
    and track the output which pages/sitemap positions are primed by script.

    I hope this helps!

    Thanks!

    Thread Starter futureyoon

    (@futureyoon)

    Hi @vmarko

    Thank you for the updates

    Regarding #3,
    I am not sure but I don’t see disk_enhanced folder but page_enhanced > my domain
    Is this right behavior?

    Please kindly confirm.
    Thank you

    Thread Starter futureyoon

    (@futureyoon)

    one more question

    under ‘page_enhanced’ > mydomain.com > folder

    I saw 2 files _index_ssl.html and _index_ssl.html_gzip
    and not long after, somehow ‘_old’ has been added to the these file names.
    It seems that the file with ‘_old’ cache is invalidated (expired) for some reasons.

    Is there a way to control to keep these cache’s lifespan forever unless deleted? at least where can I control this lifespan?

    Thank you

    Thread Starter futureyoon

    (@futureyoon)

    I created a new post regarding cache expired with _old since it’s a new topic.

    Just one thing I would like you to confirm about
    the folder name under cache should be
    page_enhanced
    or
    disk_enhanced
    ?

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @futureyoon

    Thank you for yoru feedback.
    I am sorry for the confusion. Yes, it should be a page_enhanced folder (Disk: Enhanced is the caching method) again sorry for the confusion.
    If you are seeing files created there then it means that the preload is working.
    I’ll reply to your other post as well.
    Thanks!

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