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.