Implement Caching for Asset Minification
enhancementhelp wanted
This PR introduces a caching mechanism for asset minification, allowing the system to store and reuse minified files without reprocessing unchanged assets.
**Changes Made**
- Stores minified asset paths in a cache file (storage/framework/cache/minify.php).
- Checks if the minified file exists and is up-to-date before regenerating it.
- Serves the cached minified file when available or falls back to the minify.assets route if not.
- Throws an exception when the original asset file is not found.
**Benefits**
- Improved Performance: Reduces redundant processing for unchanged assets.
- Lower Server Load: Avoids unnecessary minification operations.
The cached file will be served with random string file name after minification.
合并状态:未合并 1 条评论