PHP code example of techdivision / indexsuspender
1. Go to this page and download the library: Download techdivision/indexsuspender library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
techdivision / indexsuspender example snippets
interface IndexSuspenderInterface
{
/**
* Suspends all related indexing processes.
* If the request / cli process finishes, the suspender will be removed automatically.
*
* @return void
*/
public function suspend();
/**
* Resumes all suspended indexing processes.
*
* @return void
*/
public function resume();
/**
* Suspends all related indexing processes.
* If the request / cli process finishes, the suspender will not be removed automatically.
*
* @param string $externalKey
* @return void
*/
public function suspendExternal($externalKey);
}