• Hit there and thanks for maintaining this plugin.

    I have had it installed for at least a year on my small multisite instance… all up to date.

    I set the log times to 1-3 days to keep the db down in size and as I only need it to see what happened recently.

    I’ve just noticed that the logs have entries going months back, not just the 1-3 days.

    I also note that someone else here has reported the same issue a couple of weeks ago. I’ll just flag it here again.

    Regards
    Rob

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hello,

    I had the same problem, having installed the plugin mid-2022.

    I took a quick look at the code and noticed the scheduled event aal/maintenance/clear_old_items which deletes old items is created when the plugin is activated.

    But when using the command wp cron event list, I could see that the event was missing and therefore nothing was deleted.

    I simply deactivated the plugin and activated it again, and now the cron event is working and listed when using the command.

    Hope that helps,

    Thread Starter robaxxx

    (@robaxxx)

    Thanks for the reply Manon.

    I tried deactivating and reactivating the plugin. Then I installed WP Crontrol plugin to view cron jobs but I can’t see any that looked like clear_old_items.

    So I’m not sure if it’s working now, so I’ll leave it for a couple of days and see what happens.
    Regards
    Rob

    Plugin Author ArielK

    (@arielk-1)

    Hi @robaxxx @mspix ,

    Is your WordPress a standard or multi-site installation?

    Thread Starter robaxxx

    (@robaxxx)

    Hi Ariel

    It’s a small multisite and the plugin is activated at network level.

    I checked today and the logs are still going back weeks, so the above fix didn’t seem to work.

    Regards
    Rob

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘“Keep logs for x days” doesn’t work’ is closed to new replies.