Last Updated: November 08, 2018
·
795
· 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

https://gist.github.com/L422Y/d91320b20941392a46cce2427dd3d817

YMMV.

hitmeup@l422y.com

Have a fresh tip? Share with Coderwall community!

Post
Post a tip
Did you know?

WordPress sites collect scripts from themes, plugins, and tag managers. A compromised plugin update can add a skimmer to every page without a change in your own templates.

Security insights from Cside