Index: openacs-4/packages/search/tcl/search-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/search/tcl/search-procs.tcl,v diff -u -N -r1.55.2.2 -r1.55.2.3 --- openacs-4/packages/search/tcl/search-procs.tcl 1 Mar 2019 10:02:39 -0000 1.55.2.2 +++ openacs-4/packages/search/tcl/search-procs.tcl 22 Feb 2021 17:43:14 -0000 1.55.2.3 @@ -115,8 +115,7 @@ # DRB: only do Oracle shit for oracle (doh) if { [ns_config "ns/db/drivers" oracle] ne "" } { - nsv_incr search_static_variables item_counter - if {[nsv_get search_static_variables item_counter] > 1000} { + if {[nsv_incr search_static_variables item_counter] > 1000} { nsv_set search_static_variables item_counter 0 db_exec_plsql optimize_intermedia_index {begin ctx_ddl.sync_index ('swi_index');