• Resolved birken

    (@birken)


    Hi guys,

    i am new to this and wonder if you could help me.

    on the boxes where the Cache Time in seconds, if i want my stuff to have expire for example after 1 month, do i change the seconds for that in your plugin?
    if not what does the “Cache Time in seconds” do? and will it benefit to have longer cache?

    warm regards B

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author luckychingi

    (@luckychingi)

    Hello @birken,

    Here’s what AWS says about the min and max cache(TTL)

    The minimum amount of time, in seconds, that you want objects to stay in CloudFront caches before CloudFront forwards another request to your origin to determine whether the object has been updated. Minimum TTL interacts with HTTP headers such as Cache-Control max-age, Cache-Control s-maxage, and Expires and with Default TTL and Maximum TTL.

    The maximum amount of time, in seconds, that you want objects to stay in CloudFront caches before CloudFront forwards another request to your origin to determine whether the object has been updated. The value that you specify applies only when your origin adds HTTP headers such as Cache-Control max-age, Cache-Control s-maxage, and Expires to objects.

    You can control how long your objects stay in a CloudFront cache before CloudFront forwards another request to your origin. Reducing the duration allows you to serve dynamic content. Increasing the duration means your users get better performance because your objects are more likely to be served directly from the edge cache. A longer duration also reduces the load on your origin.

    Source: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/Expiration.html

    Thread Starter birken

    (@birken)

    thx ??

    As i am new to this can i make this changes in your plugin?
    If yes how do i add for example 1month duration?

    Warm regards B

    Plugin Author luckychingi

    (@luckychingi)

    The plugin has a minimum cache time of 1 hour and a maximum cache time of 1 day, which is the default.

    The plugin allows you to lower the time but not increase it.

    If you think, the feature to increase minimum & maximum cache time should be available through the plugin, please send a feature request from the WordPress Plugins page. Based on the number of requests, the feature will be added to the future release.

    Thread Starter birken

    (@birken)

    ok, i have not got any wiser ?? so were can i make the cache to be longer beacuse the answer you said previous is not east to understand.

    Plugin Author luckychingi

    (@luckychingi)

    As of now, the plugin does not allow to set the maximum cache time greater than 1 day.

    If you would like to set it greater than 1 day, you can manually set it on Cloudfront

    Plugin Author luckychingi

    (@luckychingi)

    The max cache time greater than 1 day will be introduced in future release

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Cache Time in seconds??’ is closed to new replies.