Skip to content

AlsoPurchasedTurbo v1.1.0

Choose a tag to compare

@CcMarc CcMarc released this 22 Jul 11:12
· 4 commits to main since this release

Pair pruning release.

Bounds the pair table on large stores — motivated by a 167k-order production store whose unpruned table reached 40M rows / 4.5 GB:

  • New APT_MAX_PAIRS_PER_PRODUCT setting (default 50, 0 = unlimited): the storefront only ever displays a handful of recommendations, so keeping every historical pair wastes space and slows the per-product read
  • New "Prune pair table" tool — chunked, auto-continuing, safe to run any time; keeps each product's strongest pairs per the configured ranking, with no visible change to the storefront
  • Pruning runs automatically after seeding completes
  • "Last prune" shown in the Tools status panel (when it ran, before/after row counts)
  • Installer: shared idempotent install/upgrade building blocks per Zen Cart encapsulated-plugin guidance
  • Manifest: plugin library id 2443; Zen Cart v2.1.0 / v2.2.2

Requires Zen Cart 2.1.0+ (tested on 2.2.2). New installs: attached zip via Plugin Manager, then seed from Tools > Also Purchased Turbo. Upgrading from v1.0.0: use Plugin Manager's Upgrade button (a new configuration setting is seeded — file-swap alone isn't enough), then optionally click "Prune pair table" to trim an already-seeded table.