Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Autodelete wp-rocket-debug.log.html if it grows bigger than a specifc size #6618

Open
alfonso100 opened this issue May 7, 2024 · 0 comments
Labels
type: enhancement Improvements that slightly enhance existing functionality and are fast to implement

Comments

@alfonso100
Copy link
Contributor

alfonso100 commented May 7, 2024

Is your feature request related to a problem? Please describe.
When we enable WP_ROCKET_DEBUG, the wp-rocket-debug.log.html file can grow quickly, specially if preload is enabled and there are multiple optimizations running.

If for any reason the WP_ROCKET_DEBUG constant is not removed, it could grow without a limit causing multiple issues.

Describe the solution you'd like
We could delete the file if it grows over a reasonable size, I think 20 or 30 MB should be more than enough to troubleshoot any kind of case.

Describe alternatives you've considered

  • autodisable WP_ROCKET_DEBUG if the file size is too big.
  • autodisable WP_ROCKET_DEBUG after some time (1 or 2 hours)

Additional context

Some fatal errors on our settings pages, related to having a big debug file, and updating to 3.16
https://wp-media.slack.com/archives/C016DRMRG6S/p1714658146094349
https://wp-media.slack.com/archives/C016DRMRG6S/p1715011582013089?thread_ts=1715011442.043269&cid=C016DRMRG6S

Site with a 2gb debug log
https://secure.helpscout.net/conversation/2328208200/436491?folderId=7469349#thread-7018129717

7GB + 3Gb debug logs saw on a case
https://wp-media.slack.com/archives/C0124SY2J21/p1649155548753399

@piotrbak piotrbak added the type: enhancement Improvements that slightly enhance existing functionality and are fast to implement label May 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement Improvements that slightly enhance existing functionality and are fast to implement
Projects
None yet
Development

No branches or pull requests

2 participants