Previously, only object endpoints' stitched items were cached. But we also have to add stitched items to the cache key of custom endpoints. So instead of checking if the request was for an object, we check for stitched items.
Imploded stitched IDs for more efficient cache key generation.