From 1b8b3f8ad7f4a83dbbed47a0c101a42ef8fc23bf Mon Sep 17 00:00:00 2001 From: netkas Date: Mon, 17 Mar 2025 14:29:19 -0400 Subject: [PATCH] Temporarily disable cache file deletion to prevent loss of important files --- CHANGELOG.md | 8 ++++++++ src/ncc/Classes/ShutdownHandler.php | 30 ++++++++++++++--------------- 2 files changed, 23 insertions(+), 15 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ecf24f5..4b4a927 100755 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/src/ncc/Classes/ShutdownHandler.php b/src/ncc/Classes/ShutdownHandler.php index 3ce262d..1c9de8e 100755 --- a/src/ncc/Classes/ShutdownHandler.php +++ b/src/ncc/Classes/ShutdownHandler.php @@ -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 {