When set to "count based" old records never get expunged

Created on 9 January 2024, 11 months ago
Updated 23 July 2024, 4 months ago

Problem/Motivation

recently_read table gets very large with sites that have primarily anonymous traffic when "Records delete options" is set to "Count based". Despite the notice that "Older records will be removed" there doesn't seem to be a provision for this to happen in the module code.

Proposed resolution

Add a cron task that deletes old records or maybe the "count based" option to limit the number of records per user/session should be de-coupled from the process that deletes records based on how old they are. Perhaps this should be broken out into two different settings:
"Delete old records" (with the time intervals as a setting or "never") and "Records per user or session" (with the setting being the number of records to limit the user/session to)

This way a record age-limit can be configured independent of the user/session record limit.

🐛 Bug report
Status

Needs review

Version

1.3

Component

Code

Created by

🇺🇸United States nathan573 New York

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024