Temporarily disable cache file deletion to prevent loss of important files
Some checks are pending
CI Pipeline / build (push) Waiting to run
CI Pipeline / test-install (push) Blocked by required conditions
CI Pipeline / upload-release (push) Blocked by required conditions

This commit is contained in:
netkas 2025-03-17 14:29:19 -04:00
parent ccb1ef6971
commit 1b8b3f8ad7
Signed by: netkas
GPG key ID: 4D8629441B76E4CC
2 changed files with 23 additions and 15 deletions

View file

@ -5,6 +5,14 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [2.1.8] - 2025-03-17
This update introduces a temporary fix
### Fixed
- (Temporary) removed the ability to delete cache files because it's deleting important files that are needed.
## [2.1.7] - 2025-03-17
This update introduces a quality of life improvement

View file

@ -65,21 +65,21 @@
*/
public static function shutdown(): void
{
if(count(self::$cleanupPaths) > 0)
{
$filesystem = new Filesystem();
foreach(self::$cleanupPaths as $path)
{
try
{
$filesystem->remove($path);
}
catch(Exception $e)
{
Console::outWarning('An error occurred while cleaning up temporary path "' . $path . '", ' . $e->getMessage());
}
}
}
//if(count(self::$cleanupPaths) > 0)
//{
// $filesystem = new Filesystem();
// foreach(self::$cleanupPaths as $path)
// {
// try
// {
// $//filesystem->remove($path);
// }
// catch(Exception $e)
// {
// Console::outWarning('An error occurred while cleaning up temporary path "' . $path . '", ' . $e->getMessage());
// }
// }
//}
try
{