File tree 2 files changed +16
-0
lines changed
2 files changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -189,6 +189,9 @@ public function runIndex() {
189
189
return null ;
190
190
}
191
191
192
+ $ blacklistCfg = Mage::getStoreConfig ('system/asyncindex/blacklist_indexes ' );
193
+ $ blacklist = explode (', ' , $ blacklistCfg );
194
+
192
195
$ partialIndex = Mage::getStoreConfig ('system/asyncindex/partial_cron_index ' );
193
196
194
197
if ($ partialIndex ) {
@@ -198,6 +201,10 @@ public function runIndex() {
198
201
199
202
/** @var Mage_Index_Model_Process $process */
200
203
foreach ($ pCollection as $ process ) {
204
+ if ( in_array ($ process ->getIndexerCode (), $ blacklist ) )
205
+ {
206
+ continue ;
207
+ }
201
208
$ indexManager ->executePartialIndex ($ process );
202
209
}
203
210
Original file line number Diff line number Diff line change 50
50
<show_in_store >0</show_in_store >
51
51
<comment >When enabled the automated cron will perform indexing using Partial Indexing</comment >
52
52
</partial_cron_index >
53
+ <blacklist_indexes >
54
+ <label >Indexcodes which shall not be processed</label >
55
+ <comment >Commaseparated; e.g. "catalogsearch_fulltext,tag_summary"</comment >
56
+ <frontend_type >text</frontend_type >
57
+ <sort_order >50</sort_order >
58
+ <show_in_default >1</show_in_default >
59
+ <show_in_website >0</show_in_website >
60
+ <show_in_store >0</show_in_store >
61
+ </blacklist_indexes >
53
62
</fields >
54
63
</asyncindex >
55
64
</groups >
You can’t perform that action at this time.
0 commit comments