• Resolved biiissen

    (@biiissen)


    Hi there,

    I’m about to setup W3TC Pro in combination with WPML (languages on subdomains) and Yoast SEO.

    The extensions for both WPML and Yoast being activated, I was wondering if I have to mention the subdomains (https://de.domain.com, https://en.domain.com, https://fr.domain.com) in the field for “Page Cache > Aliases > Additional home URLs”?

    Furthermore I wanted to preload the sitemaps created by Yoast SEO, as there is one per language (https://de.domain.com/sitemap_index.xml, https://en.domain.com/sitemap_index.xml, …) , how is this done correctly? Can I enter 3 URLs in the field and separate them by “,” or some other sign? Or should I just enter “sitemap_index.xml” and all will be fine because the caching of the aliases will handle this?

    Thanks in advance for a little clarification on this!

    Kind regards,
    Laurent

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

    (@vmarko)

    Hello @biiissen

    Thank you for reaching out and I am happy to help!
    If the same content is served from those domains, you can add them to Page Cache > Aliases > Additional home URLs. So to confirm, yes the pages will be flushed once these are added.
    As for the Preload, you can only specify a single sitemap for preloading the cache.

    you cannot add more than one sitemap.

    What you can do is create a nested sitemap or manually create the sitemap for all domains and add it to the Sitemap URL: field.

    I hope this helps!

    Thanks!

    Thread Starter biiissen

    (@biiissen)

    Hi @vmarko,

    well technically it’s the “same” content in another language. So people could switch from the page in German to the page in English for example and then the subdomain would change (and also the slugs of course). So do you recommend adding these language subdomains to the list?

    For the sitemap: So I could be having a file sitemap-int.xml for example with this content:

    <?xml version="1.0" encoding="UTF-8"?>
    <urlset xmlns="https://www.sitemaps.org/schemas/sitemap/0.9">
    <url>
    <loc>https://de.domain.com/sitemap_index.xml</loc>
    <lastmod></lastmod>
    </url>
    <url>
    <loc>https://en.domain.com/sitemap_index.xml</loc>
    <lastmod></lastmod>
    </url>
    <url>
    <loc>https://fr.domain.com/sitemap_index.xml</loc>
    <lastmod></lastmod>
    </url>
    </urlset>

    Would that do the job also without “lastmod” being set? A quick test suggests it does. However it starts again and again from the beginning as it can’t find the already cached files. This is linked to the error messages nginx gives. But let’s discuss that in “Setup W3TC on Nginx (no proxy) & Plesk”).

    And of course thanks again for your help an patience! ??

    Kind regards,
    Laurent

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @biiissen

    Thank you for your feedback.

    Yes, this is what I meant, if the content is the same and only language is different this should be added to the Additional home URLs
    If it starts again and again from the beginning, that could be an indicator that something is flushing the cache. You may have some plugin or theme that is calling the w3tc_flush_all();

    Please check the purge log (if you re-enable the W3TC) and check what may be triggering the purge.

    Thanks!

    Thread Starter biiissen

    (@biiissen)

    Hi @vmarko,

    thanks for your further information!

    I had the preloading configured to restart every 200 secs and load 50 pages. And every 200 secs it started with the “sitemap-int.xml” (the one I had in my last post), it fetched the 3 URLs in there, started then fetching the XMLs generated by Yoast for the German site. After that it fetched the remaining URLs (50-x) from the Yoast sitemaps and stopped. So that was what I was expecting. After 200 secs it restarted the whole process from the beginning instead of continuing.

    My best guess is that this is linked to these error messages. It checked if the page existed on the server, but couldn’t find it due to the wrong patch. So it fetched it over and over again. Or is this thought rubbish?

    I’ll certainly enable your plugin again, but for now I need a break. I need the back end to be running without to much loading time for a few days, then I’ll troubleshoot the issues we discussed.

    You can leave this open or mark it resolved, I’ll open a new topic then, if needed.

    Thanks again and merry Christmas again!! ??
    Laurent

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @biiissen

    Thank you for your feedback.
    Please check the path shown in these error messages and see if the file exist there and make sure that the sitemap URL matches the server path.

    Thanks!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Setup W3TC with WPML (languages on subdomains) and Yoast SEO sitemaps’ is closed to new replies.