Forums / Developer / How to clean all the old objects versions

How to clean all the old objects versions

Author Message

Jean Gaudel

Thursday 07 December 2006 9:52:21 am

Hi,

My web site has more than 6000 objects and some of objects in the content subtree have more than 20 versions ! The size of the database increase dramaticly !

I'de like to know, if there's a script to delete all the old objects versions included image files.

Thx

kracker (the)

Friday 08 December 2006 4:56:48 am

My first suggestion would be to checkout the 'flatten.php' script (requires php-cli to run) <i>bin/php/flatten.php</i>

If you do not have php-cli enabled in your php installation you can get it very quickly,
<i>http://ezpedia.org/wiki/en/ez/solution_building_php_cli_for_ez_publish_command_line_scripts
http://ezpedia.org/wiki/en/ez/solution_building_php_cli_php_4_4_4_for_ez_publish</i>

This solution, the combination of php-cli and the flatten.php script should meet your needs.

Any other suggestions from the community on this topic?

I have created a node in eZpedia on this subject, please feel free to add to it!
<i>http://ezpedia.org/wiki/en/ez/solution_how_to_clean_all_the_old_objects_versions</i>

Cheers,
//kracker

Member since: 2001.07.13 || http://ezpedia.se7enx.com/