#3827 - Move page stats clearance (cleanup tools) to a background task
0 guests and 0 members have recently viewed this.
The top 3 point earners from 14th Dec 2025 to 21st Dec 2025.
| PDStig |
|
|
|---|---|---|
| Gabri |
|
|
| sholzy |
|
|
There are no events at this time
This is rather wrong-aheaded.
In v11 we have moved towards GDPR-based compliance handling, automatic deletion or anoymisation of content after certain time. The idea of prematurely removing semi-old content then restoring it temporarily to view old stats, is incompatible. Besides, it's a weird bloaty feature nobody needs as you can always manually backup the stats table.
I think we should drop this feature entirely.
We should also investigate why there is a stats_clean Cron hook - given the GDPR cleanup code we already have. Isn't there a Cron hook to already handle GDPR cleanup? Not sure, I need to check.
Removed unneeded Cron hook.
Old stats clearance continues to run in site.php at the end of random page views, as we cannot rely on Cron running to delete excess amounts of logged data (Cron is not a strict requirement for Composr).