Clean nodes of trash older than xxx days ...

Author Message

Dev Trimaran

Tuesday 22 June 2010 9:00:22 am

Hi ,
Is there a equivalent of the cron old_drafts_cleanup.php for cleaning the trash ?
I could not find.
I searched in the forum with "cleanup trash" but the topics I founded were from 2004.
I want a cron for cleaning all the elements of the trash older the xxx days.
I would have thing that it will be a native functionnality.

Thanks.

Sander van den Akker

Tuesday 22 June 2010 12:40:14 pm

Unfortunately I don't know of any trash cleanup script. I have searched for it on projects.ez.no some time ago. Maybe you could write your own cronjob/extension, it shouldn't be too hard.

eZ Publish certified developer
http://auth.ez.no/certification/verify/392313

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 18 2025 04:57:21
Script start
Timing: Jan 18 2025 04:57:21
Module start 'layout'
Timing: Jan 18 2025 04:57:21
Module start 'content'
Timing: Jan 18 2025 04:57:22
Module end 'content'
Timing: Jan 18 2025 04:57:22
Script end

Main resources:

Total runtime1.2107 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0049 589.4688152.6406
Module start 'layout' 0.00490.0028 742.109439.4609
Module start 'content' 0.00771.2016 781.5703522.9219
Module end 'content' 1.20940.0013 1,304.49228.2969
Script end 1.2107  1,312.7891 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.2612160.0002
Check MTime0.00130.1055160.0001
Mysql Total
Database connection0.00090.075510.0009
Mysqli_queries1.166296.3266540.0216
Looping result0.00070.0555520.0000
Template Total1.181697.620.5908
Template load0.00210.172320.0010
Template processing1.179597.426220.5898
Template load and register function0.00020.017710.0002
states
state_id_array0.00130.110710.0013
state_identifier_array0.00120.095920.0006
Override
Cache load0.00160.1312150.0001
Sytem overhead
Fetch class attribute can translate value0.00070.061920.0004
Fetch class attribute name0.00130.103730.0004
XML
Image XML parsing0.00210.176120.0011
class_abstraction
Instantiating content class attribute0.00000.000630.0000
General
dbfile0.00260.2127170.0002
String conversion0.00000.000740.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
2content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltags/sup.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/sup.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 9
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs