Releases: wpgaurav/gt-performance
Releases · wpgaurav/gt-performance
Release list
GT Performance 1.0.6
Added
- Separate controls for the main feed and the secondary feeds. "Disable secondary feeds only" keeps
/feed/serving and indexable while returning a 404 for comment feeds (site-wide and per post), category, tag, custom taxonomy, author, date, search, and post type archive feeds. "Remove secondary RSS feed links" keeps the main feed's discovery link in the document head and removes the rest. The existing all-or-nothing controls are unchanged and still win when enabled: "Disable every RSS feed" blocks the main feed too, and "Remove every RSS feed link" removes every discovery link.
Changed
- The gauravtiwari.org WordPress preset now applies the two secondary-feed controls instead of removing every feed discovery link, so the main feed stays discoverable and indexable.
GT Performance 1.0.5
Fixed
- Uninstalling with data removal enabled deleted this plugin's options and tables but never touched the filesystem, so
wp-content/cache/gt-performance/survived in full: cached HTML, generated CSS and JavaScript, logs, and both configuration files.redis-config.json.phpholds a host, username, and password. The guard kept those unreadable over HTTP, but someone who asked for their data to be removed should not be left with credentials inwp-content. Uninstall now removes the directory, resolving the path the wayCore\Pathsdoes and confirming withrealpath()that it still sits insidewp-contentbefore deleting anything.wp-content/cacheitself is left for other plugins.
GT Performance 1.0.4
Removed
- All upgrade compatibility carried since 1.0.1.
DropinRuntime::serve()no longer loadsConfigFileon behalf of a drop-in published before 1.0.1,Settings::compile()no longer deletes the configuration files those releases wrote,Database::install()no longer drops their tables, anduninstall.phpno longer lists their names.
Upgrade note
- A site running 1.0.0 or earlier still has that release's generated
advanced-cache.phpon disk. It loads a fixed list of runtime files that predatesConfigFile, so on the first request after this update it raises a fatal fromwp-settings.php, before WordPress can catch it, taking the front end and wp-admin down together. Replace the drop-in before or during the update. The build distributed from gauravtiwari.org carries a migrator that does this automatically; for any other route, run the standalone migration snippet first: https://gist.github.com/wpgaurav/03d61d313df00b4127db92393ed74681
GT Performance 1.0.3
Fixed
- The License screen's Activate, Deactivate, and Check buttons returned a blank page in the store build. Identical cause to the controls fixed in 1.0.2 - the handlers were still registered as
admin_post_gtp_license_*while the buttons submittedgtperf_license_*- in a file the 1.0.2 sweep did not reach. The WordPress.org build has no licensing code and was never affected. AdminActionWiringTestnow discovers every PHP file undersrc/instead of checking a hardcoded list of four. The hardcoded list was the same mistake the test exists to catch: it could not see the licensing module, which only ships in the store build, so 1.0.2 shipped believing the wiring was fully verified.
GT Performance 1.0.2
Fixed
- Every admin control in 1.0.1 returned a blank page. The 1.0.1 rename moved the action names the controls submit from
gtp_togtperf_, but left all 21add_action( 'admin_post_gtp_...' )andadd_action( 'wp_ajax_gtp_...' )registrations untouched, so nothing was hooked to the names being submitted. WordPress does not error in that case: it fires an action with no listeners and exits, which the browser renders as an empty response and which leaves no trace in the error log. Purge, Cloudflare connect/sync/preview/diagnose/token, Redis test and install, page-cache drop-in install, xCloud refresh, purge verification, Commerce Safety Lab, CSS training and regeneration, Fleet export and import, database cleanup, the admin-bar quick actions, the CSS report poll, and the Private Islands fragment endpoint were all dead. - The rename missed these because it matched
\bgtp_, and inadmin_post_gtp_purgethegtp_is preceded by an underscore, which is a word character, so the boundary never applied. Hook strings are the one place that flaw could hide, and nothing compared the two sides.
Added
AdminActionWiringTestasserts that every action an admin control submits, every admin-bar action, and every AJAX action posted by the bundled JavaScript has a matching handler registered, and that no hook is registered under the retired prefix. A silent-blank-page regression of this shape now fails the test suite.
GT Performance 1.0.1
Security
- The compiled cache configuration and the Redis runtime configuration are no longer executable PHP. Both are stored as JSON behind a fixed
<?php exit; ?>guard line and are read withfile_get_contents()andjson_decode(), never included. The guard keeps a direct web request from disclosing the Redis credentials on servers that do not honour.htaccess. - The early cache drop-in and
RequestContext::fromGlobals()now sanitize the request through one shared implementation. Control characters are stripped and every name and value is bounded before any of it reaches thegt_performance_htmlfilter.
Fixed
- Updating from 1.0.0 took the whole site down. The drop-in published by that release loads a fixed list of runtime files that predates
ConfigFile, so the moment the new plugin files landed it fatally errored insidewp-settings.php— before WordPress exists to catch it — taking the front end and wp-admin down together with no way back except filesystem access.DropinRuntime::serve()now loads its own dependency when an older drop-in did not. - Schema 3 renames this plugin's tables from the
gtp_prefix togtperf_. Without a schema bump the upgrade left the old tables in place and every queue, dependency, and CSS artifact query failed against a table that did not exist. The upgrade now creates the renamed tables and drops the superseded ones. WpCacheConstant::enable()rewrote an already-correctWP_CACHEline to an identical value, read the unchanged file as a failed update, and returned an error — which madeDropinInstaller::install()delete the drop-in it had just published. Installing twice in a row disabled page caching.DropinInstaller::syncVersion()gated only on the version, so a migrated or restored site running the same release from a new path kept a compiled configuration naming the old directory. The drop-in found nothing to load and the site served uncached indefinitely without reporting anything. The gate now tracks the location alongside the version.- Keyboard focus styles were pruned out of generated CSS.
:focus-visibleand:focus-withinmatched the shorterfocusalternative in the dynamic-state pattern, leaving-visibleand-withinfused to the class name, so the rules matched nothing and were removed as unused. RequestContext::fromGlobals()did not unslash the superglobals, so any URL, query value, or cookie containing a quote hashed differently in WordPress than in the drop-in and could never produce a cache hit.DropinInstaller::installedVersion()captured the trailing period after the drop-in signature, which made every version comparison unequal and reinstalled the drop-in on each request.
Changed
- Page-cache entry metadata is now
<hash>.meta.jsoninstead of a generated<hash>.meta.php. Because metadata no longer passes through opcache, the opcode-invalidation workaround is gone along with the stale-metadata window it covered on hosts runningopcache.validate_timestamps=0. advanced-cache.phpis a bundled file copied verbatim fromdropins/, with only its version stamped in. It resolves the cache root fromWP_CONTENT_DIRand the plugin directory from the compiled configuration, so no path is baked into the published drop-in.- Every output buffer the plugin opens is closed explicitly through
Core\OutputBuffer, onshutdownat priority 0, ahead of core's ownwp_ob_end_flush_all(). - Renamed the
GTP_andgtp_prefixes toGTPERF_andgtperf_across constants, transients, AJAX actions, the cron schedule, the Private Islands shortcode, and the Redis key prefix. There is no compatibility shim:wp-config.phpconstants and any stored shortcode must use the new names. - Updated
sabberworm/php-css-parserfrom 8.9.0 to 9.4.0. Version 9 requiresthecodingmachine/safeat runtime, which adds about 2.4 MB to the package and eagerly loads 79 function-definition files when the plugin bootstraps. That cost lands only on full WordPress requests, measured at roughly 5 ms; requests served from the page cache never load the plugin autoloader and are unaffected. - The compiled configuration files are now
config.json.phpandredis-config.json.php. The names deliberately differ from theconfig.phpandredis-config.phpused up to 1.0.0: a drop-in left over from that release reads those paths withrequire, so pointing the new guarded files at the old names could have blanked every front-end response if the drop-in swap did not complete. Compiling also deletes the old files. dropins/is now covered by the coding-standards run.
GT Performance 1.0.0-rc.6
Fixed
- Fixed "Remove WordPress version" pinning every visitor to pre-update core assets. Dropping
verfrom a core script or stylesheet URL leaves an address that never changes across a WordPress release, so browsers and CDNs holding it under a longmax-agekeep serving the old bytes indefinitely. The version is now replaced with a stable site-specific hash instead of removed, which hides the release just as well and still busts the cache on every update. Symptom on a 7.1 upgrade: the new admin bar site icon rendered at full size because the cached stylesheet predated the.site-iconrules.
GT Performance 1.0.0-rc.5
Fixed
- Fixed the Operations cards sitting flush against the panel edge while the panel heading above them was inset, and fixed their rows sitting 40px apart against 20px columns. The grid carried no inset of its own, and each card is a panel in its own right whose 20px bottom margin stacked on the grid gap and hung a phantom band under the last row.
- Fixed the API token permission list and the "Install drop-ins, purge, and sync Cloudflare on the dashboard" link hanging outside the panel inset. The link now uses the existing
.gtp-inline-linktreatment, matching "View release history". - Fixed
.gtp-inline-linknever picking up the narrow inset at the mobile breakpoint. Its override sat in a media block declared earlier in the file than the rule it was meant to override, so source order silently discarded it.
Changed
- The panel inset is now a single
--gtp-insettoken, 24px normally and 20px under 782px, replacing 26 hard-coded values and five per-class media overrides. Because the token is redefined on.gtp-adminrather than on each block, a rule declared later in the file can no longer defeat the responsive override, which is the defect behind the mis-inset link and permission list. Adding a new block to a panel now means using the token instead of remembering to register the class in two places.
GT Performance 1.0.0-rc.4
Fixed
- Fixed the "Other cache rules that also match this site" block rendering at three different left offsets. The heading had no rule at all, so it fell back to the browser default and hung outside the panel inset; the note carried the standard 24px inset; and the conflict list carried none. The heading now uses
.gtp-subhead, the list is inset to match its siblings, and both pick up the 20px inset at the mobile breakpoint. The default1emheading margin stacking on top of the note's own 20px padding also left an oversized gap, which is now collapsed. - Fixed the "Or create it automatically" heading inside
.gtp-operation-panelinheriting browser default type and margins. It now shares the 14px heading rule already used by the preset and database-result headings.
Changed
- Admin notices are now a compact status pill instead of a full-width WordPress notice bar. When a failure carries an upstream reason, the pill gains a "Why?" disclosure that opens the detail in an anchored popover rather than pushing the page down. The popover is anchored to its own pill rather than promoted to the top layer, so it lands in the right place without depending on CSS anchor positioning, and it light-dismisses on outside click or Escape. Dismissing removes the
gtp_noticequery argument instead of hiding the node, so a reload cannot resurrect a notice that has already been read.
GT Performance 1.0.0-rc.3
Fixed
- Fixed Cloudflare cache rule synchronization failing outright on any site with more than one bypassed query parameter.
RuleExpression::compile()emitted a separateconcat("&", http.request.uri.query)per parameter, and Cloudflare rejects an expression that callsconcatmore than once (error 20127), so every sync returned HTTP 400 and the managed rule silently stopped updating. Each parameter now compiles to an equivalentstarts_with()pluscontainspair that calls no rationed functions. - Fixed the managed rule permanently reporting drift on plans that do not support custom cache keys. A custom cache key is an Enterprise capability, so the write only lands after
RuleManagerstrips it, butRuleCompiler::rule()kept compiling the ideal rule for comparison. Drift was measured against a shape Cloudflare can never store and no amount of syncing cleared it. Comparison now uses the shape the plan accepts, while a sync still attempts the ideal rule so an upgraded plan heals itself. - Fixed cache rule conflict detection ignoring rules that never name a hostname. A catch-all expression such as
trueapplies to every hostname in the zone and was reported as zero conflicts. - Fixed a fatal error in the connection check on zones with no cache ruleset yet, where a
WP_Errorwas indexed as an array.
Added
- Cloudflare API failures now report the reason Cloudflare gave, including its numeric error code and any nested error chain, instead of collapsing every failure into one generic sentence. Requests that never reached Cloudflare are reported separately from requests Cloudflare rejected.
- Added a Cloudflare connection check that walks integration state, edge ownership, credentials, authentication, zone lookup, and cache rule read and write in order, and names the stage that failed with the reason. The write stage rewrites the managed rule with its own current contents, so it proves the write path without changing anything.
- Added an API token panel listing the exact permissions the integration needs, a Cloudflare token-creation template link, and optional automatic creation of a zone-scoped token when a Global API Key is on file. A newly minted token is exercised before it replaces working credentials, because Cloudflare reveals a token secret only once.
- The rule plan panel now lists overlapping rules with their expressions and reports whether a custom cache key was applied.
Changed
- A failed synchronization now still records the live rule plan, so the screen reflects current zone state instead of appearing never to have run.