0

Please advise me on the correct value to choose for “Page cache maximum age” as a cachin strategy (I’m running a medium Drupal 8.5.3 website).

closed as too broad by Kevin, DRUPWAY, leymannx, sanzante, Krishna Mohan May 22 '18 at 9:01

Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. Avoid asking multiple distinct questions at once. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

  • 3
    What do you mean the correct value? The correct value is whatever one best suits your needs. – Kevin May 16 '18 at 22:30
  • 3
    As Kevin said, there's no single, simple correct value for a "medium drupal website." Generally you want to set it to the largest value you can while keeping your content fresh. – sonfd May 16 '18 at 22:59
3

As others have said, there is no "correct value". But if you are really stuck; a fairly simple way to choose is to consider how often content on your site will change, and then divide that by 2.

So if you expect your content to update every 24 hours: 24 / 2 == 12 hours. So set your cache to 12 hours. If you aren't sure how often content will change, set it to a slightly lower value. Is performance is very important, or if your site will be getting a lot of traffic, set a higher value.

You may also want to look at non Drupal caching options such as Cloudflare, varnish cache & memcache. But that's a whole other thing.

Not the answer you're looking for? Browse other questions tagged or ask your own question.