Changeset 3746414
- Timestamp:
- 10/14/2026 01:02:56 PM (5 weeks ago)
- Location:
- zinn-cache/trunk
- Files:
-
- 2 added
- 3 edited
-
includes/class-cli-start.php (added)
-
includes/start.php (added)
-
languages/zinn-cache.pot (modified) (2 diffs)
-
readme.txt (modified) (2 diffs)
-
zinn-cache.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
zinn-cache/trunk/languages/zinn-cache.pot
r3745230 r3746414 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: Zinn® Cache 1.10. 5\n"5 "Project-Id-Version: Zinn® Cache 1.10.6\n" 6 6 "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/zinn-cache\n" 7 7 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" … … 10 10 "Content-Type: text/plain; charset=UTF-8\n" 11 11 "Content-Transfer-Encoding: 8bit\n" 12 "POT-Creation-Date: 2026-10-14T0 1:32:22+00:00\n"12 "POT-Creation-Date: 2026-10-14T08:30:58+00:00\n" 13 13 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 14 14 "X-Generator: WP-CLI 2.12.0\n" -
zinn-cache/trunk/readme.txt
r3745230 r3746414 8 8 Tested up to: 7.1 9 9 Requires PHP: 8.2 10 Stable tag: 1.10. 510 Stable tag: 1.10.6 11 11 License: GPLv2 or later 12 12 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 175 175 == Changelog == 176 176 177 = 1.10.6 = 178 * Faster and lighter on servers: WP-CLI commands, scheduled tasks and AI agents (MCP) on your site now start with less memory, so they keep working beside large plugins such as WooCommerce. 179 177 180 = 1.10.5 = 178 181 * Translation template refreshed so every language stays complete. -
zinn-cache/trunk/zinn-cache.php
r3745230 r3746414 4 4 * Plugin URI: https://zinndigital.com/wordpress-plugins/zinn-cache 5 5 * Description: A page cache and a Redis object cache for any WordPress site. Uses the LiteSpeed server cache where there is one and its own disk cache everywhere else, purges only what a change affects, and proves its Redis connection works. 6 * Version: 1.10. 56 * Version: 1.10.6 7 7 * Requires at least: 6.6 8 8 * Requires PHP: 8.2 … … 34 34 defined( 'ABSPATH' ) || exit; 35 35 36 const VERSION = '1.10. 5';36 const VERSION = '1.10.6'; 37 37 38 38 define( 'ZINN_CACHE_VERSION', VERSION ); … … 49 49 50 50 Autoloader::register( __DIR__ . '/includes' ); 51 52 // ⛔ `require_once` rather than the autoloader: the shared settings framework is deliberately 53 // GLOBAL — shipped identically into seven plugins with different namespacing conventions — 54 // and this plugin bootstraps inside `Zinn\Cache`, where an autoloader keyed on the namespace 55 // would never look for `Zinn_Cache_Admin_UI`. Loaded unconditionally, because `::get()` is 56 // read on front-end requests as well as in wp-admin (§2.38). 57 require_once __DIR__ . '/includes/class-zinn-cache-admin-fields.php'; 58 require_once __DIR__ . '/includes/class-zinn-cache-admin-ui.php'; 59 require_once __DIR__ . '/includes/class-zinn-cache-connection.php'; 60 require_once __DIR__ . '/includes/class-zinn-cache-diagnostics.php'; 61 require_once __DIR__ . '/includes/class-zinn-cache-style-presets.php'; 51 require_once __DIR__ . '/includes/class-cli-start.php'; 62 52 63 53 register_activation_hook( __FILE__, array( Plugin::class, 'activate' ) ); 64 54 register_deactivation_hook( __FILE__, array( Plugin::class, 'deactivate' ) ); 65 55 66 add_action( 'plugins_loaded', array( Plugin::class, 'boot' ) ); 67 68 // ── The Zinn® panel ────────────────────────────────────────────────────────────────────── 56 // The start — the settings framework, the Zinn® panel and every hook of the plugin — is in 57 // includes/start.php. Cli_Start runs it at once, or in a WP-CLI command right after WordPress has 58 // loaded: WP-CLI loads WordPress under PHP's own 128 MB limit and lifts it only afterwards (stage 59 // PERF3's pattern, applied here by CONSENT1, Q226). `define( 'ZINN_CLI_START_AT_ONCE', true );` 60 // starts it at once under WP-CLI too. 69 61 // 70 // ⚖️ Owner, 2026-09-01: *"each plugin should promote our hosting and marketplace as well as 71 // Zinn Hub global marketplace inside people's site in the admin dashboard"*, and *"user 72 // guides for them … linked to in the plugins dashboard"*. 73 // 74 // ⛔ `require_once` rather than the autoloader, and a STRING callable rather than 75 // `array( Zinn_Cache_Promo::class, … )`. The class is deliberately global — it is shipped 76 // identically into seven plugins with different namespacing conventions, and three of them 77 // bootstrap inside a namespace where `Zinn_Cache_Promo::class` would resolve to a class that does 78 // not exist. A string callable is resolved in the global namespace at call time, which is 79 // correct from every one of the seven. `php -l` cannot see that mistake; only running it can. 80 require_once __DIR__ . '/includes/class-zinn-cache-promo.php'; 81 add_action( 'plugins_loaded', array( 'Zinn_Cache_Promo', 'register' ) ); 82 83 // HOSTDISC (docs/894): the hosting-customer Pro discount card, on this plugin's own screen, only 84 // on a site Zinn hosts, and never once Zinn® Cache Pro is active. The class is generated 85 // (`wp/bin/build-promo.php`) and global, so it is required and named by STRING, like the promo. 86 require_once __DIR__ . '/includes/class-zinn-cache-pro-discount.php'; 87 add_action( 88 'plugins_loaded', 62 // ⭐ Anything that must run WHILE WordPress loads even when the start is deferred goes above 63 // this line; the rest is in start.php. 64 \Zinn\Cache\Cli_Start::start( 89 65 static function (): void { 90 \Zinn_Cache_Pro_Discount::register( 'zinn-admin-ui-zinn-cache', 'Zinn\\Cache\\Upsell::pro_active' );66 require_once __DIR__ . '/includes/start.php'; 91 67 } 92 68 );
Note:
See TracChangeset
for help on using the changeset viewer.