Tagged: 

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #125621
    Paul Corujo
    Guest

    Hello,

    I am working on an entirely static (it is never updated, but Dynamic in the sense it is WordPress) site which was developed by a consulting team which is no longer working with us. We are not using the FSD Cache because of our complex Cloudfront behaviors on this domain. Our page/object/db caches are configured to use Redis which is provisioned via ElasticCache. My questions are as follows:

    1. How do I configure the plugin to never expire the redis cache?
    2. We load/deploy a wp-json file with all configs (an export from the plugin) and some how every few days the configurations get reverted. We checked to make sure no build has run and the containers are not restarted at all. We checked the cron plugin and nothing is running which would revert. Honestly we have no clue why this is happening so any ideas would be greatly appreciated.
    3. Some pages have “guzzle” in the Datadog flame graph which appears to be doing a GET for images that we are storing in S3. We have a cloudfront behavior which sends /wp-content/uploads to the appropriate bucket so I cannot think of any reason for this process to be needed (see details below). Is there any way to turn this off/stop it from happening? This accounts for 75% of load time on pages which it appears.

    {
    component
    guzzle
    http
    {
    host
    cbi-marketing-cached-assets-prd.s3.us-west-2.amazonaws.com
    method
    GET
    path_group
    /wp-content/uploads/?/?/?
    status_code
    200
    url
    https://cbi-marketing-cached-assets-prd.s3.us-west-2.amazonaws.com/wp-content/uploads/2022/04/AnalystInsights_illo_platform_20220323.svg
    url_details
    {
    host
    cbi-marketing-cached-assets-prd.s3.us-west-2.amazonaws.com
    path
    /wp-content/uploads/2022/04/AnalystInsights_illo_platform_20220323.svg
    scheme
    https
    }
    }
    language
    php
    network
    {
    destination
    {
    name
    cbi-marketing-cached-assets-prd.s3.us-west-2.amazonaws.com
    }
    }
    span
    {
    kind
    client
    }
    team
    fire
    version
    edb3377e
    }

    Your help is greatly appreciated!

    #125682
    Marko Vasiljevic
    Keymaster

    Hello Paul

    Thank you for reaching out and I am happy to help!
    In W3 Total Cache there are advanced settings for each caching module, Page Cache, Object Cache, DB Cache, etc. If you are using Redis, in the Redis settings you can find the Default lifetime of cache objects. With this option, you can manage the cache expiration, however, please note that depending on the website this can impact the memory.

    As for the 2. and 3. this does not seem to be related to the W3 Total Cache. I would need to check this more and get back to you on this.

    Thanks!

    #126175
    Paul Corujo
    Guest

    Thanks Marko I appreciate the response. What specific value would i set for the cache to never expire. The value you’re referring to is in seconds, if I set this to 0 would that just cache forever? The site I am referring to will never update.

    How can we go about troubleshooting step 2?

    #126201
    Marko Vasiljevic
    Keymaster

    Hello Paul

    Thank you for your feedback.
    There is no specific value for the cache to never expire. There is no specific option for this in the W3 Total Cache settings. What you can do is to cache for a year as the static files are cached in the browser, and also add the same value to the Browser Cache settings for the HTML&XML
    as for point 2. When you say reverted, what exactly you mean by that? Are you making any changes or the configuration is reset to default?
    Thanks!

    #126341
    Paul Corujo
    Guest

    Thanks, will set to one year. The settings are all being reverted to the default.

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Cache Invalidation’ is closed to new replies.