Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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.

  1. This module has a few dependencies: CTools, Purge,  URLs queuer (For Free Accounts)
  2. Run this in your root of your site

    Code Block
    composer require d8-contrib-modules/cloudflarephpsdk "1.0.0-alpha5"
    1. Make sure you have the php-mbstring extension installed on your system.

  3. Run

    Code Block
    drush en cloudflare cloudflarepurger purge purge_ui purge_drush purge_queuer_coretags purge_processor_cron --yes
    drush cr
    
    


  4. Go to admin/config/services/cloudflare and enter your CloudFlare creds found here
  5. Go to admin/config/development/performance/purge and add the CloudFlare purger
  6. Run 

    Code Block
    drush cset system.performance cache.page.max_age 31536000


  7. Clear your Varnish & CloudFlare caches.
  8. Once on live site run:

    Code Block
    wget -r -nd --delete-after -l100 --spider http://mydrupalsite/


  9. 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.

...