daily pastebin goal
58%
SHARE
TWEET

Untitled

a guest Dec 13th, 2018 67 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. require_once 'app/Mage.php';
  2. umask(0);
  3. Mage::app('');
  4.  
  5. $indexProcess = Mage::getModel('index/process');
  6. $indexProcess->setId('something');
  7. $indexProcess->lockAndBlock();
  8.  
  9. if ($indexProcess->isLocked()) {
  10.   var_dump('locked');
  11. } else {
  12.   var_dump('something went wrong');
  13. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top