Automatic delete objects upon time

Author Message

Bjørn Sandvik

Tuesday 14 June 2005 1:32:41 am

I need a possibility to automatic delete objects upon a time that is specified in a date attribute within the object. How could this be achived with eZ publish?

http://blog.thematicmapping.org
http://www.globalis.no

Gabriel Ambuehl

Wednesday 15 June 2005 12:00:26 am

Write a small script that searches for the objects that are due for deletion and deletes them. Then let it run as a cronjob.

Visit http://triligon.org

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 21:00:27
Script start
Timing: Jan 18 2025 21:00:27
Module start 'layout'
Timing: Jan 18 2025 21:00:27
Module start 'content'
Timing: Jan 18 2025 21:00:28
Module end 'content'
Timing: Jan 18 2025 21:00:28
Script end

Main resources:

Total runtime0.6791 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.0048 587.9219152.6250
Module start 'layout' 0.00480.0026 740.546939.4609
Module start 'content' 0.00740.6703 780.0078517.0781
Module end 'content' 0.67770.0014 1,297.08598.1563
Script end 0.6791  1,305.2422 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00360.5345160.0002
Check MTime0.00140.2067160.0001
Mysql Total
Database connection0.00060.094210.0006
Mysqli_queries0.639094.0866540.0118
Looping result0.00050.0777520.0000
Template Total0.652796.120.3264
Template load0.00320.470020.0016
Template processing0.649595.641420.3248
Template load and register function0.00020.028010.0002
states
state_id_array0.00070.101010.0007
state_identifier_array0.00060.090520.0003
Override
Cache load0.00280.408270.0004
Sytem overhead
Fetch class attribute can translate value0.00050.071820.0002
Fetch class attribute name0.00120.182730.0004
XML
Image XML parsing0.00180.270220.0009
class_abstraction
Instantiating content class attribute0.00000.000930.0000
General
dbfile0.00190.2824160.0001
String conversion0.00000.000940.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
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
2content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 7
 Number of unique templates used: 5

Time used to render debug report: 0.0002 secs