From e77d6bab794b752f917bc77b066cc87ea5800790 Mon Sep 17 00:00:00 2001 From: spiderr Date: Sat, 13 Feb 2021 18:34:40 -0500 Subject: clearstatcache on imagick resize --- plugins/processor.imagick.php | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/processor.imagick.php b/plugins/processor.imagick.php index e45b7aa..76c9b6d 100644 --- a/plugins/processor.imagick.php +++ b/plugins/processor.imagick.php @@ -36,6 +36,7 @@ function liberty_imagick_resize_image( &$pFileHash ) { global $gBitSystem; $pFileHash['error'] = NULL; $ret = NULL; + clearstatcache( true, $pFileHash['source_file'] ); if( !empty( $pFileHash['source_file'] ) && file_exists( $pFileHash['source_file'] ) && is_file( $pFileHash['source_file'] ) && (filesize( $pFileHash['source_file'] ) > 0) ) { try { $im = new Imagick(); -- cgit v1.3