This site has been archived and you can no longer log in or post new messages. For up-to-date community resources please visit

eZ Community » Forums » Developer » Conflicts with updateniceurls.php and...

Conflicts with updateniceurls.php and flatten.php

Conflicts with updateniceurls.php and flatten.php

Thursday 13 January 2011 8:09:57 pm - 1 reply


I'm trying to clean up my company's ezpublish database. So after I recommended updateniceurls.php and flatten.php (which solves some of the problems we're facing), the biggest concern was "What happens to objects that are being edited/published with either of these scripts are in the middle of running?"

Perhaps a better question would be, can I run these scripts on a production database where people are constantly working? Are there any conflicts if an object is flattened or its friendly url is updated while someone is editing it?



Friday 14 January 2011 1:14:45 am

This is actually a very good question... the short answer is no.

One example: flatten calls eZContentObjectVersion::removeVersions(). This method removes every temporary version (drafts, internal drafts, rejects, etc). This is a problem for internal drafts, as they might be used.

However, the method has an expiry parameter. It should be set to a sane value (maybe we have such an editing timeout already ?).

I haven't checked the other calls yet.


You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu

Proudly Developed with from