I am trying to update an asset index from a plugin but can't seem to get it to work. Looking at the docs this seems to me like it should work but it does not. I am on the right path here?
$ses = craft()->assetIndexing->getIndexingSessionId();
craft()->assetIndexing->processIndexForSource($ses, null, 7);
7 is the id of the asset folder I want to re-index.
craft()->assetIndexing->getIndexListForSource($sessionId, $sourceId);
. Check how the Asset Index Tool does it incraft/app/tools/AssetIndexTool.php
. – Brad Bell Jul 22 '16 at 18:55