Simple plugin to prevent the WP debug log file from growing too large.
| Author: | Broes Consulting (profile at wordpress.org) |
| WordPress version required: | 4.9.0 |
| WordPress version tested: | 6.3.2 |
| Plugin version: | 1.0.0 |
| Added to WordPress repository: | 27-12-2023 |
| Last updated: | 27-12-2023
Warning! This plugin has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.
|
| Rating, %: | 0 |
| Rated by: | 0 |
| Plugin URI: | https://github.com/arnaudbroes/ab-truncate-de... |
| Total downloads: | 199 |
![]() Click to start download |
|
This simple plugin schedules a cron job that will truncate the debug log file to a certain number of lines (default: 5,000 lines) after the file reaches a certain size (default: 10MB). No user interaction is required.
This is to prevent the debug log file from growing too large and taking up too much space on the server.
Two filters can be used to change the default values:
ab_truncate_debug_log_max_sizeto change the maximum size of the debug log file (in MB).ab_truncate_debug_log_linesto change the number of lines the debug log file is truncated to.
