• Hello i am using a wp rocket cashing plugin and wpml multicurrency, i got a poor score in gtmetrix and google page speed, i talk to wp rocket they said it is expected where

    It is expected to have a deteriorated results when testing on PageSpeed or GTMetrix.

    The reason for that is what I shared previously:

    #1 – WooCommerce Multilingual & Multicurrency uses our mandatory cookie system.
    This means that it will need a first uncached visit in order to set the following cookie wcml_client_country required for WP Rocket to deliver a country-specific cache.
    As long as you are using that particular plugin, that first uncached request will be required.

    As long as you are using a plugin that requires setting a mandatory cookie in order to work with page cache, auditing tools will always return a bad score as cache and optimizations are not yet applied.

    i exclude wcml_client_country cookies from varnish

    now i understand that first visit of a visiotrs will be uncashed, is there any soloution to avoid this and is that they said is correct ?

Viewing 1 replies (of 1 total)
  • Plugin Support Andrés Cifuentes

    (@andrescifuentesr)

    Hello @futureskills ,

    What WP Rocket support explains is correct WCML and it is part of how WCML handles multicurrency.

    However, have you tried if preload cache improves this situation?https://docs.wp-rocket.me/article/8-preload-cache

    On the other hand, the wcml_client_country cookie is the result of the visitor’s country resolution. When a visitor accesses the site for the first time, WCML needs to determine his country (based on his IP) and then set this cookie. We cannot serve cached pages before knowing where the visitor comes from.?

    Please keep in mind that this cookie is set only if the multicurrency is enabled by location, if you select currencies per language (and no default by country), we should not have this cookie.

    Please let me know if this helps.
    Andrés

Viewing 1 replies (of 1 total)
  • The topic ‘poor score on gtmetrix’ is closed to new replies.