Caution: This documentation is for eZ Publish legacy, from version 3.x to 6.x.
For 5.x documentation covering Platform see eZ Documentation Center, for difference between legacy and Platform see 5.x Architecture overview.

MaxNodesRemoveSubtree

Summary

Sets the maximum number of nodes that subtrees subject to removal can contain.

Usage

 

MaxNodesRemoveSubtree= number

Description

This directive makes it possible to disallow the removal of big subtrees (for all users). When using the administration interface and trying to remove subtrees containing more nodes than "MaxNodesRemoveSubtree" allows, a warning will be shown while the subtrees will be displayed in red. In such cases, the user will be suggested to use the "ezsubtreeremove.php" script located in the "bin/php/" directory. Subtrees containing more nodes than the value of "MaxNodesRemoveSubtree" can and will not be removed through HTTP (using a web browser to access a siteaccess).

If several subtrees are selected for removal, only the ones containing less nodes than allowed will be removed when the "OK" button is clicked within the removal dialog of the administration interface. The default value of this setting is 100, which means that subtrees containing more than 100 nodes can't be removed through HTTP, not even by users with administrator privileges.

This setting has been introduced in order to avoid cases which might lead to corrupt databases. The time it takes to remove a subtree is proportional with the number of nodes that it contains. If the required processing time exceeds the maximum execution time for PHP scripts, the connection will be lost and thus the database will most likely be left in an inconsistent state.

Examples

Example 1

 

MaxNodesRemoveSubtree=50


This configuration will not allow the removal of subtrees that contain more than 50 nodes over HTTP. Subtrees containing more than 50 nodes will have to be removed manually using the "ezsubtreeremove.php" script.

Julia Shymova (26/04/2007 1:48 pm)

Balazs Halasy (02/05/2007 8:03 pm)

Julia Shymova, Balazs Halasy


Comments

There are no comments.