Last Updated: November 08, 2018
· larrywilliamson

Cumbersome complete site uploads slow and painful? use LFTP!

Script to automate updating a staged WordPress site from a local dev environment and clear PageSpeed
and NGiNX fastcgi caches. Skips uploading node_modules.

1) Update WordPress (Understrap) version in style.css so browsers will refresh the new version
2) use lftp w/ sftp to reverse mirror files w/ 20 parallel connections (FAST.)
3) use SSH to remotely execute cache clearing commands