Skip to content

Delete log entries older than N days #7

@vboctor

Description

@vboctor

If EventLog is enabled and is not being trimmed, then the database can grow to a very large size. Hence, there should be regular house keeping done to delete entries older than N days.

Events to consider hooking to (choose one):

  • EVENT_REPORT_BUG - should happen often enough.
  • EVENT_CRONJOB - doesn't get triggered for instances that don't have cronjob setup. May run too often for instances that run this every minute independent of activity.

The idea is not to do this on every request (similar to token purging that is done my core on every request)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions