hotfix: convert the xcri-cap to a string before caching
remove unnecessary return in task
Merge pull request #296 from unikent/develop

bugfix: cache a string version of the xcri-cap rather than an object