Details
-
Bug
-
Resolution: Fixed
-
Medium
-
4.1.3
-
None
Description
found a minor bug in eZContentOperationCollection::registerSearchObject()
here
if ( $delayedIndexing == 'enabled' ) { $db = eZDB::instance(); $rows = $db->arrayQuery( "SELECT param FROM ezpending_actions WHERE action='index_object' AND param = '$objectID'" ); if ( count( $rows ) == 0 ) { $db->query( "INSERT INTO ezpending_actions( action, param ) VALUES ( 'index_object', '$objectID' )" ); return; } }
the "return" should be outside the "if ( count..." because when an object is already pending for indexation, it never enters inside this if, causing a realtime indexation, not delayed, and this is causing timeout errors when publishing content.
Steps to reproduce
- enable delayedindexing
- publish some content -> a pending action is added (this is ok)
- before runing update index cron, edit and publish the same object -> you get realtime indexation in this case (this is not desired with delayed indexing enabled)
Attachments
Issue Links
- relates to
-
EZP-12456 Class based delayed indexing
- Closed