is it possible empty the trash bin automatically ?

Author Message

francis Nart

Thursday 18 March 2004 5:25:57 am

each time a user delete an item, it is stored in the trash bin. The problem is that (apparently), the trash bin is not cleared automatically so it stores an increasing amount of information...
Is there a way to set up the maximum size of the trash bin or to clear it automatically ?

Best regards.

Francis.

Balazs Halasy

Thursday 18 March 2004 5:54:20 am

You could program a workflow that is executed every now and then. This workflow would then take care of emptying the trash. Unfortunately, there is no automatic/standard/default solution to this problem. I checked the configuration files and I could not find a max trash-count setting either. However; if this is a huge problem and you need a quick'n dirty solution then you could do the following:

Find the template that the admin interface uses when it displays the "Are you sure you want to remove object xxx and its yyy children?" - This template contains a checkbox, "Move to trash", which by default is checked. Set this to unchecked and you should be fine (content will then be directly deleted instead of being moved to the trash).

Balazs

francis Nart

Thursday 18 March 2004 6:08:16 am

ok thanks !
But I think that it would be an interesting new feature for future versions don't you think ?
I'll add that comment in the wish list.

Francis

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 31 2025 08:21:05
Script start
Timing: Jan 31 2025 08:21:05
Module start 'layout'
Timing: Jan 31 2025 08:21:05
Module start 'content'
Timing: Jan 31 2025 08:21:06
Module end 'content'
Timing: Jan 31 2025 08:21:06
Script end

Main resources:

Total runtime0.9152 sec
Peak memory usage4,096.0000 KB
Database Queries57

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0051 588.2578151.2266
Module start 'layout' 0.00510.0043 739.484436.6797
Module start 'content' 0.00940.9050 776.1641926.3906
Module end 'content' 0.91440.0008 1,702.55477.8125
Script end 0.9152  1,710.3672 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00290.3207160.0002
Check MTime0.00130.1394160.0001
Mysql Total
Database connection0.00050.058910.0005
Mysqli_queries0.864794.4872570.0152
Looping result0.00050.0582550.0000
Template Total0.873495.420.4367
Template load0.00210.225220.0010
Template processing0.871395.204820.4357
Template load and register function0.00160.177610.0016
states
state_id_array0.00200.216910.0020
state_identifier_array0.00260.287320.0013
Override
Cache load0.00170.1852170.0001
Sytem overhead
Fetch class attribute can translate value0.00060.061320.0003
Fetch class attribute name0.00250.268640.0006
XML
Image XML parsing0.00070.074720.0003
class_abstraction
Instantiating content class attribute0.00000.001340.0000
General
dbfile0.00220.2356160.0001
String conversion0.00000.001140.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
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
3content/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
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 11
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs