-
Notifications
You must be signed in to change notification settings - Fork 97
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Cesium caches all 3D tiles on local app storage without ever deleting them, this means that it adds up from 0 all the way to 10gb quite quickly.
My script:
void OnApplicationQuit()
{
Caching.ClearCache();
Directory.Delete(Application.temporaryCachePath, true);
//-
string cacheDir = Application.temporaryCachePath;
string[] filesToDelete =
{
"cesium-request-cache.sqlite",
"cesium-request-cache.sqlite-shm",
"cesium-request-cache.sqlite-wal"
};
// Loop through the files and delete them
foreach (string fileName in filesToDelete)
{
string filePath = Path.Combine(cacheDir, fileName);
// Check if the file exists before attempting to delete it
if (File.Exists(filePath))
{
// Delete the file
File.Delete(filePath);
}
}
}
Doesn't clear up that occupied space.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request