Set cache id

This avoids problems like described in https://github.com/Guite/MostGenerator/issues/650
Merge pull request #24 from Guite/master

Set cache id