View Issue Details

IDProjectCategoryView StatusLast Update
0003827Composrstatspublic2020-01-06 16:40
ReporterChris GrahamAssigned ToChris Graham 
SeverityFeature-request 
Status closedResolutionwon't fix 
Product Version 
Fixed in Version 
Summary0003827: Move page stats clearance (cleanup tools) to a background task
DescriptionCurrently the stats clearance (which creates a backup first) runs in real-time, but this may timeout, so should be done in a background task.
TagsRoadmap: v11, Type: Performance
Time estimation (hours)1
Sponsorship open

Activities

Chris Graham

2019-12-24 20:17

administrator   ~0006262

Reassigned to myself.

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.

Chris Graham

2020-01-06 16:40

administrator   ~0006268

Simplified stats clearance to a simple table dump.

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).

Issue History

Date Modified Username Field Change
2019-06-21 19:18 Chris Graham New Issue
2019-06-21 19:18 Chris Graham Tag Attached: Type: Performance
2019-06-27 17:48 Chris Graham Tag Attached: Roadmap: v11
2019-07-12 21:21 Chris Graham Assigned To => Patrick Schmalstig
2019-07-12 21:21 Chris Graham Status non-assigned => assigned
2019-12-24 20:14 Chris Graham Assigned To Patrick Schmalstig => Chris Graham
2019-12-24 20:17 Chris Graham Note Added: 0006262
2020-01-06 16:40 Chris Graham Status assigned => closed
2020-01-06 16:40 Chris Graham Resolution open => won't fix
2020-01-06 16:40 Chris Graham Note Added: 0006268