A simple plugin that clears the debug log by the cron schedule when it gets too big.
As of April 2026, LH Clear Debug Log by Cron is a WordPress cron plugin with 10 active installations and a 0/5 rating0. It has been downloaded 1.0K+ times in total. Requires WordPress 5.0+ and PHP false+. Available on WordPress.org since 2021. Last updated 3 years ago — may have compatibility concerns. Top alternative: WP Crontrol.
The best way of debugging in wordpress s to use the debug.log. But if you leave debug running for long periods that log can grow MASSIVELY. This can slow your site down.
This plugin uses the wordpress cron jobs to empty the debug log once it grows beyond a certain size.
NOTE this plugin relies on wordpress cron. If that is not working this plugin will not work. But then you will also have bigger problems!
Like this plugin? Please consider leaving a 5-star review.
Love this plugin or want to help the LocalHero Project? Please consider making a donation.
| WordPress | 5.0+ requiredTested up to 6.0.11 |
| PHP | false+ required |
1.00 May 09, 2021
Initial release.
1.01 June 19, 2022
Minor improvements
Plugin data sourced from WordPress.org. Analysis and metrics by PluginSift.