Using ddclient with Cloudflare

CloudFlare is the perfect dynamic DNS host because, unlike the other major ones, CloudFlare is completely free. Unfortunately if your ISP dosen’t allow use of a static IP, maintaining regular internet uptime can be quite annoying. Here’s how I got DDNS working on Ubuntu 18.04.1 LTS with Cloudflare and ddclient running as a daemon to check and renew our IP if it changes.

WP-Cron using Linux’s Cron

The WordPress default system “virtual” cron requires visitors to execute events. During each page load, it checks the database if there are any scheduled tasks to run. Without visitors, cron will not be prompted. This method is very inefficient and adds additional resource usage to your server. This tutorial will help walk you through replacing WordPress cron with a Linux cron job.