Has anyone written a wp-cron script to check bandwidth usage?

[ad_1]

My host has a bandwidth limit and only lets me know I'm at risk by shutting down my site once I've crossed it. Has anyone written a wp-cron script (or some better solution) to check our usage and send an alert if we are at risk?

[ad_2]
6 Comments
  1. The better solution would be to look at why you’re going over the bandwidth and if it’s a low threshold, move hosts.

  2. WordPress has no way of knowing how much bandwidth has been used. This is a hosting issue. Honestly, if your site is getting shut down due to bandwidth usage, move to a better host.

  3. it may be available in server access logs or your host’s control panel. i feed access logs from caddy to goaccess and it shows bandwidth used per day. i assume the access logs from apache and nginx should have similar information.

    you can significantly reduce your origin host’s bandwidth use by proxying your site through cloudflare and enabling tiered cache and html cache (for logged out users only).

  4. Wp cron gets triggere only on site visit; please do not rely on wp cron to handle any realtime tracking

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer