...
Remember to follow the proper Configuration Management Workflow. Enable all modules and composer libraries on local then push to live and import the config. If you don't have Business account and not going to cache HTML though CloudFlare then you don't need to setup purge modules and cloud flare connectors.
- This module has a few dependencies: CTools, Purge, URLs queuer (For Free Accounts)
Run this in your root of your site
Code Block composer require d8-contrib-modules/cloudflarephpsdk "1.0.0-alpha5"
Make sure you have the php-mbstring extension installed on your system.
Run
Code Block drush en cloudflare cloudflarepurger purge purge_ui purge_drush purge_queuer_coretags purge_processor_cron --yes drush cr
- Go to admin/config/services/cloudflare and enter your CloudFlare creds found here
- Go to admin/config/development/performance/purge and add the CloudFlare purger
Run
Code Block drush cset system.performance cache.page.max_age 31536000
- Clear your Varnish & CloudFlare caches.
Once on live site run:
Code Block wget -r -nd --delete-after -l100 --spider http://mydrupalsite/
- If your site uses configuration management - set everything on your local and export config via drush. Make sure your performance settings are either in config split or config ignore.
...