| 开发者 | orloxgr |
|---|---|
| 更新时间 | 2026年7月11日 06:32 |
| 捐献地址: | 去捐款 |
| PHP版本: | 8.1 及以上 |
| WordPress版本: | 7.0.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
Defer Instead of Delay and Do Not Defer or Delay fixes.advanced-cache.php drop-in. Page-cache files are stored in ultracache/cache/ below the active WordPress uploads directory. Optional disk object-cache data is stored separately in ultracache/object-cache/, while generated optimization assets use dedicated directories below the same ultracache/ root.
The page cache is intended for anonymous public pages. Logged-in users, admin paths, cart/checkout/account flows, unsafe cookies, unsafe query strings, and configured exclusions are bypassed.
Object cache
UltraCache can install and manage an object-cache.php drop-in.
Recommended backend order:
wp-config.php through the WordPress Filesystem API:
define( 'WP_REDIS_PASSWORD', 'redis-password' );
define( 'ULTRACACHE_VARNISH_PASSWORD', 'varnish-password' );
An existing constant defined outside the UltraCache-managed block remains externally managed and read-only in the dashboard. Redis ACL credentials are also supported when WP_REDIS_PASSWORD is defined externally as an array containing the username and password. Password values are never returned to the browser, stored in plugin options, exposed through REST or WP-CLI output, or written to diagnostics and logs.
UltraCache derives its internal early-runtime control token from the existing WordPress authentication keys and salts. No standalone runtime-secret PHP file is created.
Media Rewrite
Media Rewrite changes frontend image URLs to AVIF/WebP variants when those files exist and match the selected output policy.
WebP is the default output for fresh installations. AVIF generation and delivery are enabled only after UltraCache successfully encodes, decodes, and validates both its bundled opaque JPEG and transparent RGBA test images. The test runs again when the relevant PHP or image-processing environment changes.
Actual media files are generated by batch conversion, generation on upload, or the missing-media queue. Normal frontend requests stay lookup-only and do not encode images.
CSS, JavaScript, and fonts
UltraCache includes CSS bundling, async CSS controls, JavaScript defer/delay tools, Google Fonts localization, self-hosted font CSS optimization, optional delayed icon-font loading, and an advanced runtime font CSS rewrite switch.
The Smart JavaScript Error Fixer can scan a selected frontend URL for browser runtime errors or analyze console errors pasted by an administrator. It uses missing globals, missing jQuery plugin methods, stack-trace URLs, and dependency clues to identify related scripts and generate fixes for Defer Instead of Delay or Do Not Defer or Delay.
Riskier optimization features remain controlled by visible switches and exclusion lists.
Warm-up and diagnostics
Warm-up tools can build cache for the homepage, menu URLs, selected URLs, or full-site queues.
Warm-up media buckets follow the current Media Rewrite/output policy.
Diagnostics include cache status, storage summaries, object-cache backend truth, CSS bundle summaries, media queue status, Varnish checks, OPcache/APCu visibility, and STORE profiles.
ultracache folder in the active WordPress plugins directory.Page-cache files are stored in ultracache/cache/ below the active WordPress uploads directory. Optional disk object-cache data is stored in ultracache/object-cache/. Generated optimization assets use dedicated directories below the same root, including optimized image variants in ultracache/images/.