Skip to content

v1.1.0

Choose a tag to compare

@brianvarskonst brianvarskonst released this 28 Oct 15:05
· 12 commits to main since this release
v1.1.0

Nginx Cache 1.1.0 makes automatic purges match what actually changed: site-wide settings now clear stale pages, WooCommerce sell-outs no longer wipe the whole cache, and multisite purges reach the site where the change happened.

  • Site-wide settings and widgets purge the cache. Changing the site title, tagline, site icon, front page or posts page setting, posts per page, widget placement or the settings of a registered widget type now purges the whole cache. These values render on every page; before, cached pages kept the old output until they expired. The hooks only fire when a stored value actually changes (#55).
  • WooCommerce sell-outs stay selective. Selling out a product assigns the internal product_visibility term, and every variation save ran through the non-viewable product_variation post type. Both forced a full purge, although the WooCommerce product hooks already purge the product, its parent, its archives and the shop. Variations that a plugin publishes as their own pages are still purged directly (#57).
  • Multisite purges run in the right site. Changes made through switch_to_blog(), such as network admin edits of a subsite, collected the subsite's URLs but ran in the current site, which rejected them as foreign. The subsite stayed stale and the request remained in the current site's retry queue. Pending purges now run in the blog their hook fired in; sites created in the same request are skipped because they have no cache yet (#58).
  • Static analysis with PHPStan 2.3.3 passes again. Development only; no runtime change (#54, closes #12).

On upgrade: no configuration change. Option names, stored values and the generated Nginx configuration are unchanged, so no include regeneration or Nginx reload is needed. Expect a full purge after site title, reading-setting or widget changes, and fewer full purges on WooCommerce shops.

Implementation: #54, #55, #57, #58

Release preparation: #56

Release commit: 73c0bc23823f94cda77259193b3a78fe59d991ff. The SSH-signed tag was verified locally with the SymPress release key.

Validation: all eight QA checks passed on every fix PR and the release PR, and the post-merge QA run on main passed. Local QA in PHP 8.5 passed: 120 tests / 596 assertions, coding standards, static analysis and hook checks. The WordPress integration suites passed locally on MariaDB 11.8 and MySQL 8.4 with the CI-pinned images, plus the Redis and native Nginx 1.26 suites. Local test installs with an Nginx FastCGI cache (WordPress 7.1.2, WooCommerce 11.2.1) confirmed the behavior through X-Nginx-Cache on a single site, a subdirectory multisite and a subdomain multisite, including queue mode. The final checks ran against the released ZIP. The ZIP contains the production dependencies and passed checksum and source checks: 2,477 file checksums, 131 source files identical to the tag, and no development packages. Archive build and checks.

Download ns-nginx-cache-1.1.0.zip below for a ready-to-install WordPress package. The automatically generated GitHub source archives do not include the production dependencies. Composer users can update sympress/nginx-cache to ^1.1.0.