• Resolved joy0114

    (@joy0114)


    Hi,

    It’s not an issue, I would just like some advice.

    My site is bilingual thanks to Polylang.

    Would it be wise to configure a crawler (and thus a cache) for each language?
    Is it possible to do it by adding the polylang cookie that records the language (in my case “pll_language”), in the crawler configuration (Cookie simulation) ?
    I specify that I use “guest mode” feature.

    Thanks a lot for any advices.
    Best regards

    PS: I found this on documentation:
    “WPML uses the ?_icl_current_language=? cookie to differentiate between visitor languages. An English speaker’s cookie would look like ?_icl_current_language=EN, while a Thai speaker’s cookie would look like ?_icl_current_language=TH. To crawl your site for a particular language, use a Guest user, and the appropriate cookie value.”

    But I don’t understand the last sentence: “use a Guest user”: what does it mean exactly ?

    • This topic was modified 1 year, 10 months ago by joy0114. Reason: PS:
Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support qtwrk

    (@qtwrk)

    guest user , as a visitor that has not logged in to the site.

    Thread Starter joy0114

    (@joy0114)

    H Qtwrk,

    You mean I don’t have to specify another user than “host”, like on this screenshot coming from present configuration ?
    my crawlers

    In my case, “customer” is coming from the user id of one of my customer.
    I stopped crawlers with “customer” because I’m not sure it’s really useful for me and also because I’m afraid it will cause a lot of load with a total of 16 crawlers.

    Thank you for your advices.
    Best regards

    Thread Starter joy0114

    (@joy0114)

    Well, I’m not sure generating one cache per language with the help of Polylang cookie is really suitable for me…

    What is happening:

    *** I display one page in language FR –> cookie is set as pll_language=fr
    *** On this I switch toward language EN –> cookie stays as pll_language=fr
    *** I refresh (without deleting) cookies) this page –>cookie is set as pll_language=en
    ***I switch toward language FR –> cookie stays as pll_language=en

    I’m not sure it is caused by guest-mode enabled, because if I disable it : cookie _lscache_vary switches from “Guest-mode” to “5253ad7591e7079be24731efae29a1eb” and behavior is exactly the same.

    Thanks a lot if you can explain this to me.
    Best regards

    Thread Starter joy0114

    (@joy0114)

    Hi,

    Finally, it seems using specific cache for this cookie, causes issue in my case.

    In functions.php, I had to apply filters according current language of pages with language detection by pll_current_language(), a function of Polylang dedicated to this.
    And with this kind of cache, filters are not applied.

    Not, a real problem, it was just for testing if this was suitable for my case.

    Have a good day!
    Best regards

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Crawlers for languages’ is closed to new replies.