Forums / Suggestions / Being able to limit the number of versions available

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

eZ debug

Timing: Jan 18 2025 11:09:43
Script start
Timing: Jan 18 2025 11:09:43
Module start 'content'
Timing: Jan 18 2025 11:09:44
Module end 'content'
Timing: Jan 18 2025 11:09:44
Script end

Main resources:

Total runtime0.9192 sec
Peak memory usage4,096.0000 KB
Database Queries209

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0052 587.9375180.8125
Module start 'content' 0.00520.7584 768.7500675.7813
Module end 'content' 0.76360.1556 1,444.5313338.8594
Script end 0.9192  1,783.3906 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00370.4025210.0002
Check MTime0.00140.1485210.0001
Mysql Total
Database connection0.00060.063910.0006
Mysqli_queries0.841391.52102090.0040
Looping result0.00280.30042070.0000
Template Total0.889096.720.4445
Template load0.00220.236620.0011
Template processing0.886996.477420.4434
Template load and register function0.00020.022510.0002
states
state_id_array0.00090.097010.0009
state_identifier_array0.00230.255020.0012
Override
Cache load0.00180.1960230.0001
Sytem overhead
Fetch class attribute can translate value0.00170.183060.0003
Fetch class attribute name0.00240.261980.0003
XML
Image XML parsing0.00180.196260.0003
class_abstraction
Instantiating content class attribute0.00000.001680.0000
General
dbfile0.00350.3792320.0001
String conversion0.00000.000530.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 20
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs