Skip to content
This repository was archived by the owner on Oct 29, 2025. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions AllInOneMinify.module
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ class AllInOneMinify extends WireData implements Module, ConfigurableModule {
// ------------------------------------------------------------------------
// Try to remove the cache folder.
// ------------------------------------------------------------------------
if(chmod(wire('config')->paths->assets.self::$cacheDir.DIRECTORY_SEPARATOR, 0777) === false OR rmdir(wire('config')->paths->assets.self::$cacheDir.DIRECTORY_SEPARATOR) === false) {
if(wireChmod(wire('config')->paths->assets.self::$cacheDir.DIRECTORY_SEPARATOR) === false OR rmdir(wire('config')->paths->assets.self::$cacheDir.DIRECTORY_SEPARATOR) === false) {

// ------------------------------------------------------------------------
// If the folder and files can not be removed, trigger an error.
Expand Down Expand Up @@ -663,7 +663,7 @@ class AllInOneMinify extends WireData implements Module, ConfigurableModule {
foreach ($_cacheFiles as $_cacheFile) {
if (((filemtime(wire('config')->paths->assets.self::$cacheDir.DIRECTORY_SEPARATOR.$_cacheFile->getFilename()) + self::$cacheMaxLifetime) < time() OR $force_all === true) AND is_file($_cacheFile)) {
$_file = wire('config')->paths->assets.self::$cacheDir.DIRECTORY_SEPARATOR.$_cacheFile->getFilename();
if(chmod($_file, 0777) !== false) {
if(wireChmod($_file) !== false) {
if(unlink($_file) === false) {
throw new WireException('The old cache files could not be deleted.');
}
Expand Down
Binary file added Archive.zip
Binary file not shown.