Does the cache server need licenses?

No. When you have signed up SourceAnywhere Hosted, the cache server is included and does not take a license.