Skip to content

clearCache

function clearCache()

Clears the Rostruct GitHub Release cache that is used by the fetch and fetchLatest functions.

Don't use this in your projects!

This function should be used by the end user for troubleshooting only.


Example usage

Because the cache is cleared, this code always redownloads Roact:

Rostruct.clearCache()

local package = Rostruct.fetch("Roblox", "roact", "v1.4.0")