Limit index key length when creating oembed caches

fixes #4312