Being able to limit the number of versions available

Author Message

francis Nart

Wednesday 17 March 2004 2:16:54 am

We think it would be a good point to have a way to limit the number of versions an object should keep. This way, when dealing with an e-commerce site where you have multiple versions of the products (change of reference number, price...) it could maintain the number of versions to a reasonable limit and disc

Kåre Køhler Høvik

Wednesday 17 March 2004 2:28:37 am

In content.ini you can set

[VersionManagement]
DefaultVersionHistoryLimit=10

--
Kåre Høvik

Kåre Høvik

Paul Forsyth

Thursday 18 March 2004 4:00:46 am

When i last tried this, with 3.2, i found the minimum number of versions is 2. The reason back then was that eZ needed to first create a new version in order to populate it. If the number was set to 1 it was impossible for the system to create a new version, which confused eZ. Im not sure if this has been resolved with 3.3

paul

francis Nart

Thursday 25 March 2004 8:22:14 am

great news !

I just decided to print the entire content.ini file to find other "good news" like this one (I hope !).

Lauren Matheson

Monday 05 April 2004 9:07:38 pm

Is there a way to set this based on class or section? It would be great to keep many or all versions of important data, and few of others.

Balazs Halasy

Monday 05 April 2004 11:47:51 pm

As far as I know: this is a global setting, it goes for all content (the entire tree) - can't be set on a section/subtree basis.

Balazs

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 15:03:26
Script start
Timing: Jan 18 2025 15:03:26
Module start 'layout'
Timing: Jan 18 2025 15:03:26
Module start 'content'
Timing: Jan 18 2025 15:03:27
Module end 'content'
Timing: Jan 18 2025 15:03:27
Script end

Main resources:

Total runtime0.6089 sec
Peak memory usage4,096.0000 KB
Database Queries72

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0054 589.2734152.6563
Module start 'layout' 0.00540.0026 741.929739.4922
Module start 'content' 0.00790.5997 781.4219670.6719
Module end 'content' 0.60760.0012 1,452.093812.1250
Script end 0.6088  1,464.2188 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00310.5103160.0002
Check MTime0.00130.2110160.0001
Mysql Total
Database connection0.00060.106710.0006
Mysqli_queries0.557591.5649720.0077
Looping result0.00070.1113700.0000
Template Total0.576894.720.2884
Template load0.00190.311720.0009
Template processing0.574994.413820.2874
Template load and register function0.00010.021410.0001
states
state_id_array0.00140.232610.0014
state_identifier_array0.00110.180020.0005
Override
Cache load0.00160.2611230.0001
Sytem overhead
Fetch class attribute can translate value0.00090.142750.0002
Fetch class attribute name0.00120.192480.0001
XML
Image XML parsing0.00120.190750.0002
class_abstraction
Instantiating content class attribute0.00000.002480.0000
General
dbfile0.00080.1291210.0000
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
6content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
8content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 20
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs