Skip to main content
Tweeted twitter.com/#!/StackMagento/status/297710442111971331
edited body
Source Link

I tried locking my indexer programmatically with this code as I used to do:

$indexer = Mage::getSingleton('index/indexer');
            $indexer->lockIndexer();

I noticed that my indexer didn't get locked and when i went looking in the core files I saw it was deprecated. Is there any other way to lock the indexer,? I looked into it and didn't exactly see one.

I tried locking my indexer programmatically with this code as I used to do:

$indexer = Mage::getSingleton('index/indexer');
            $indexer->lockIndexer();

I noticed that my indexer didn't get locked and when i went looking in the core files I saw it was deprecated. Is there any other way to lock the indexer, I looked into it and didn't exactly see one.

I tried locking my indexer programmatically with this code as I used to do:

$indexer = Mage::getSingleton('index/indexer');
            $indexer->lockIndexer();

I noticed that my indexer didn't get locked and when i went looking in the core files I saw it was deprecated. Is there any other way to lock the indexer? I looked into it and didn't exactly see one.

Source Link

Locking indexer programmatically

I tried locking my indexer programmatically with this code as I used to do:

$indexer = Mage::getSingleton('index/indexer');
            $indexer->lockIndexer();

I noticed that my indexer didn't get locked and when i went looking in the core files I saw it was deprecated. Is there any other way to lock the indexer, I looked into it and didn't exactly see one.