Release 1.2.0
Added static methods for cache operations and improved error handling and directory permission checks.
View full changelog
Added
- Added
ClearCacheAction::clear()andRegenerateCacheAction::regenerate()static methods for direct cache operations, returningtrueon success orWP_Erroron failure
Changed
- Added directory permission check (
is_writable) on the cache directory before deleting or compiling cached files - Suppressed PHP warning on
unlink()failure to prevent Sentry from capturing it; errors are reported viaWP_Errorinstead - Broadened exception handling in cache regeneration from
InvalidArgumentExceptiontoThrowableto catchfile_put_contentspermission warnings RegenerateCache.jsnow displays server error message in the admin notice on failure