Endurance Page Cache adds basic file-based caching to WordPress, as well as more advanced caching solutions in nginx and Cloudflare. EPC is designed to run best on Endurance systems and your mileage may vary.
- Run
git clone git@github.com:bluehost/endurance-page-cache.gitto pull down the code. - Run
composer installto install PHP dev dependencies. - Run
npm installto install JS dev dependencies.
- Run
composer run lint
- Run
npm run wp-env startto boot the WordPress environment - Run
npm run testto run the tests
- Bump the version number in the header of the
endurance-page-cache.phpfile (also theEPC_VERSIONconstant). - Push all changes to
master. - Merge all changes to
production. - Create a release on GitHub for the new version.
- Log into DigitalOcean and update the
mu-plugins.jsonfile on the CDN to reflect the new version number. (Download, edit file, upload, make public, and replace). - Make sure to purge the file from the DigitalOcean Spaces CDN to update immediately.