i am not a cache expert, I always used shared hostings in the past, and I started to use DO recently together with trellis/bedrock/sage.
so far so good, I never activated the cache in my previous projects, but now I am going online with a new project (and I think that I will need the cache on this because it will receive a lot of visitors because a social campaign will link to it) so I would like to activate the cache, so I can speed up a little bit and keep the droplet happier.
I read the docs, and as far as I understood, there is the built-in option to activate the page caching.
Do I need to set inside wordpress_sites.yml just the value to true, or I need to paste the whole settings?
cache: enabled: false duration: 30s skip_cache_uri: /wp-admin/|/xmlrpc.php|wp-.*.php|/feed/|index.php|sitemap(_index)?.xml skip_cache_cookie: comment_author|wordpress_[a-f0-9]+|wp-postpass|wordpress_no_cache|wordpress_logged_in
are these settings ok for the majority of the WordPress websites or I need to be aware of something?
moreover, I would like to active also the caching of assets (so google speed test will be happy), and add the expiry headers, I saw that I can do this, by creating a file cache.conf.j2 inside trellis/nginx-includes/sitename.com/ folder.
are there any recommended settings for this?
is roots.io still using this setting (post of 2017)?