• Resolved Morshed Alam

    (@sumon1068)


    Hello,

    Right now, 404 event logs that are older than 90 days are purged automatically.

    This isn’t right. Because when I took a manual backup, I saw that the database size was abnormal. I guessed that the 404 event logs are making my database heavy.

    So, the option should be the number of entries. Users will decide the number of entries. Suppose I choose 200, so 200 events will be logged. Older entries will be deleted automatically. So the 404 event logs will always show the latest 200 404 error list.

    Can you do that in your later update please?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support hjogiupdraftplus

    (@hjogiupdraftplus)

    Hi @sumon1068

    If you have more 404 event logs instead after 90 days you can change it to purged after 10 (X) days.

    You can define the below constant in wp-config.php and instead of 10 you may use any other number of days after the record gets deleted.

    define('AIOS_PURGE_EVENTS_RECORDS_AFTER_DAYS', 10)

    It might also be an issue if there are frequent 404 events and if we limit to only recent 200 records.

    Regards

    Thread Starter Morshed Alam

    (@sumon1068)

    Thank you for the code.

    I mentioned 200 just as an example. It could be recent 5000.

    Anyway, I will apply the code snippet.

    Thanks for this great plugin.

    Plugin Support hjogiupdraftplus

    (@hjogiupdraftplus)

    Hi @sumon1068,

    Thanks, I will create an internal ticket for your suggestion.

    Limit set for example 5000 recent cronjobs for cleanup DB should be running every minute/hour to work it correctly, which adds an extra load on server. Here if we say limit after days that cronjob runs every day.

    Regards

    Thread Starter Morshed Alam

    (@sumon1068)

    Okay, now I get it. We don’t need more cron jobs. So, I think there is no need to create this ticket.

    However, you can create an internal ticket about letting set this option from plugin settings instead of editing the config file:

    define('AIOS_PURGE_EVENTS_RECORDS_AFTER_DAYS', 10)

    Thank you.

    Plugin Support hjogiupdraftplus

    (@hjogiupdraftplus)

    Hi @sumon1068,

    Thanks, It is a good suggestion from plugin settings that should be possible to change.

    I will create an internal ticket for that.

    Regards

Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.