• Resolved thyagonet88

    (@thyagonet88)


    Is it possible to use HTML caching for disk and Redis for database without causing conflicts?

    I saw that in the setup you have the option to choose.

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

    (@vmarko)

    Hello @thyagonet88

    Thank you for reaching out.
    If I understood correctly, you wish to use Disk or Disk: Enhanced caching method for Page Caching (HTML) and Redis for DB or Object Caching.
    If this is the case, yes, you can use different caching methods for different modules without any conflict.

    I hope this helps!

    Thanks!

    Thread Starter thyagonet88

    (@thyagonet88)

    That would be exactly it, thanks for the reply! There is no conflict in using the 2 at the same time then, right?

    Taking advantage of this opportunity, when receiving a request with a random querystring ?fbclid, will access to the article seek this access in REDIS or in the static HTML cache?

    And how does W3 Total Cache behave with these fbclid accesses when the person does not have REDIS?

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @thyagonet88

    Thank you for your feedback.
    Well now I am not sure I understand the question. When using Page Caching, you can only use one caching method. So you can choose between Disk: Enhanced, Disk: Basic, Redis, etc.
    If you are using Disk Enhanced for example, the cached pages will be stored on disk in wp-content/cache/page_enhanced/ folder. If you are using Redis, the pages will be cached in memory.
    As for the ?fbclid this also depends on which caching method you are using. By default, caching URLs with query strings is not enabled for Disk: Enhanced. However, you can add fbclid to Performance>Page Cache>Advanced>Accepted query strings:
    Once added, all pages with the mentioned query strings will be served from the cache, or from the mentioned wp-content/cache/page_enhanced/ folder.

    I hope this helps!

    Thread Starter thyagonet88

    (@thyagonet88)

    That’s what I really want about fbclid.

    A doubt, when containing fbclid in the querystring it stores that post in the 2 redis/disk caches. As queries with fbclid are random, ex: mysite.com/article1/?fbclid111 and so on mysite.com/article1/?fbclid222
    Is the query id random, is each id saved in this scenario or just 1 single post with query string containing fbclid starts responding to any id as HIT in the header for both REDIS (tmpfs) and HTML (disk)?

    I take the opportunity, and leave this flowchart to contextualize, W3 Total Cache is in the same square as PHP-FPM, and there it makes the decisions, correct?

    https://imgur.com/a/N22CVPa

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hey @thyagonet88

    Thank you for your feedback.

    To answer your question, only one post is saved. If you have mysite.com/article1/?fbclid111 and mysite.com/article1/?fbclid222
    And you add fbclid to Performance>Page Cache>Advanced>Accepted query strings: only one page will be cached mysite.com/article1/ and served to users that have visited the page with any random query string that includes fbclid

    I hope this answers your question!

    Thanks!

    Thread Starter thyagonet88

    (@thyagonet88)

    Hi,
    Thanks for your help!

    I saw that fbclid and other terms are already added there.

    Do I need to click activate above? I ask because here I am not being allowed to activate the 2 options above. https://imgur.com/a/dsEc4pU

    Thanks for talking about it!

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @thyagonet88

    Thank you for your feedback.
    The options are not available with the Disk: Enhanced Caching method. The default list for caching pages with query strings with the Disk: Enhanced Caching method is in the Accepted query strings field.
    With the greyed out option that are only available with Disk: Basic and memory-based caching methods will cache URLs with all query strings and not just added in the Accepted query strings filed.

    Thaks!

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Multiple disk cache and redis’ is closed to new replies.