Skip to content

Commit

Permalink
Update search index in hide cronjob (ezsystems#1348)
Browse files Browse the repository at this point in the history
* Fix link source change (object => node) when editing a version

* Update search index in hide cronjob
  • Loading branch information
SerheyDolgushev authored and andrerom committed Jun 25, 2018
1 parent 1e5fa83 commit 6f4e99f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cronjobs/hide.php
Expand Up @@ -49,6 +49,9 @@
{
$cli->output( 'Hiding node: "' . $node->attribute( 'name' ) . '" (' . $node->attribute( 'node_id' ) . ')' );
eZContentObjectTreeNode::hideSubTree( $node );

//call appropriate method from search engine
eZSearch::updateNodeVisibility( $node->attribute( 'node_id' ), 'hide' );
}
// clear memory after every batch
eZContentObject::clearCache();
Expand Down

0 comments on commit 6f4e99f

Please sign in to comment.