ASA2 1.34.1 is now available. This is a bugfix and reliability release: no new features, no new options, no UI changes. The headline fix makes the Amazon product refresh cronjob dramatically faster on large catalogs, and four smaller fixes close gaps in cron monitoring, WP-CLI compatibility, and data accuracy.
What’s New in ASA2 1.34.1
- Cronjob Speed: The product refresh cronjob runs in milliseconds instead of seconds on large catalogs, and no longer slows down with more configured shops
- Cron Monitoring: Failed cron runs now show up as failures instead of a silent, misleading “success”
- Bug Fixes: 3 additional issues resolved, covering cron statistics, WP-CLI, and invalid product identifiers
Amazon Product Refresh Cronjob Is Up to 1,000x Faster
Sites with several thousand products running the product refresh cronjob saw it take seconds per run and dominate their database’s slow query log. On one customer site, a single run scanned roughly a million postmeta rows and took about 7 seconds. Catalogs with several configured shops were hit harder still, since ASA2 added one redundant database join per shop since version 1.30.0.
The cause was the generic WordPress meta query ASA2 used to select products due for a refresh. That query joined the postmeta table up to seven times without the field name in the join condition, forcing the database to scan far more rows than necessary.
ASA2 1.34.1 replaces this with one dedicated SQL query that uses a single keyed join per field. In a benchmark on a 30,000-product catalog, the selection query went from about 36 seconds to about 33 milliseconds, with identical results. Real-world gains depend on catalog size and server load, but the query no longer scales with the number of configured shops.
No configuration change is needed. The new selection logic is a drop-in replacement for the existing one, so every site benefits automatically after updating.
Failed Cron Selections No Longer Report a False “Success”
A related bug affected the cronjob when run without the shop_id and lifetime parameters, for example with just --limit=50. The product selection failed silently with a database error (“Unknown column wp_term_relationships.term_taxonomy_id”), and the cronjob reported “Refreshing 0 products” with a green, successful status.
ASA2 1.34.1 now reports a failed product selection as an error everywhere it is visible: on the command line, in the cron statistics, and in the log. A cronjob that refreshes nothing because of a bug no longer looks identical to one that correctly found nothing to do.
Cron Statistics and WP-CLI Reliability
Cron Statistics No Longer Freeze Under a Persistent Object Cache
The “ASA 2 Cronjob Statistics” metabox stopped updating for sites running a persistent object cache plugin, such as Redis or Memcached. The display froze on the last entry written before the cache became active and never showed later runs.
The cause: saving a cron statistic uses set_transient(), which with an active persistent object cache is stored only in the cache. The metabox, however, read the statistics directly from the wp_options table via SQL, so it never saw the cached value, and that raw read also never checked for expiration.
ASA2 now tracks the known statistic IDs in a dedicated option and reads each one through get_transient(), which resolves correctly whether or not a persistent object cache is active. If the cron statistics on your dashboard looked frozen after installing a caching plugin, this is why, and it is fixed.
WP-CLI No Longer Crashes When Loading the Admin Context
ASA2 crashed with a fatal error whenever WordPress built the admin menu outside a browser request, for example during a WP-CLI call that loads the admin context. Previously, running such commands required the --skip-plugins flag while ASA2 was active, which disables every other plugin’s WP-CLI integration as a side effect. ASA2 1.34.1 removes this restriction, so WP-CLI commands that need the admin context no longer need to work around ASA2.
Bug Fixes & Improvements
- Products Status metabox: The “Oldest product update” and “Latest product update” stats counted products that were only in the trash, which could make the displayed timestamps misleading until the trash was emptied. Trashed products are now excluded
- Invalid product identifiers: Malformed or too-short ASINs were sent to the Amazon Creators API, producing a cryptic error and wasting a rate-limited request. They are now filtered out before the request, with a clear log message instead
Technical Requirements
- PHP: 8.1 or higher (unchanged)
- WordPress: 6.0 or higher, tested up to 7.1.3 (unchanged)
- Migration: None. No database changes and no settings need to be reconfigured
Getting Started
- Update ASA2 through the WordPress dashboard, or download version 1.34.1 from your account area
- If you run the product refresh cronjob via WP-CLI or a server cron job, no changes are needed; the new selection logic applies automatically
- If you use a persistent object cache such as Redis or Memcached, check the “ASA 2 Cronjob Statistik” metabox to confirm cron runs are now showing up as expected
For questions or issues, visit the help page. Full documentation is available at docs.getasa2.com. The complete release history is on the changelog page.





0 Comments