Added $cacheKey = $resourceCache

Caches in the resource cache partition so it clears when it should,
seeing as it's a snippet