| 开发者 | rynald0s |
|---|---|
| 更新时间 | 2025年12月6日 23:34 |
| PHP版本: | 8.0 及以上 |
| WordPress版本: | 6.9 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
wc_get_logger() for info/error logging; integrates cleanly with existing WooCommerce logs.
Session Shredder is structured for real-world stores and designed as a companion to WooCommerce's experimental guest session engine. It stays fully rule-based out of the box, but developers can extend it via hooks if they ever want to plug in external scoring services or AI endpoints.
Why not rely only on the WooCommerce experimental pruning?
– Core experimental pruning is largely age-based and opaque.
– Session Shredder adds behavior-aware rules (pageviews, cart value, bounce flag) on top of age.
– You get a dry-run mode to analyze impact before deleting anything.
– The dashboard gives you visibility into how many sessions were pruned per run and how many sessions remained active.
– WP-CLI commands let you script and automate analyze/prune runs.
– It works alongside WooCommerce experimental guest sessions and HPOS rather than replacing them: Woo can still prune based on its own rules, while Session Shredder adds a tunable, rule-based layer with better reporting.
session-shredder folder to /wp-content/plugins/.The plugin is deliberately conservative: – It operates only on sessions past a base age window (48 hours by default). – It uses features like cart value and pageviews to decide. No heuristic is perfect, but the design goal is fewer false prunes than WooCommerce core alone.
Only anonymized, behavioral features: – Age in hours – Pageviews count – Cart value (numeric) – Boolean flags (added_to_cart, bounce) No names, emails, raw IPs, or raw session IDs are stored by the plugin itself. It only works with coarse, behavior-level data such as age, pageviews, and cart totals.
Session Shredder is designed as a companion to WooCommerce 10.3+ experimental guest sessions: – On activation it opts your store into WooCommerce's experimental guest session storage if it is not already enabled. – It reads from the same session table(s) that WooCommerce uses and never touches orders or customer records. – WooCommerce core may still prune sessions based on its own rules; Session Shredder adds an additional, configurable rule-based layer on top. – The plugin declares compatibility with WooCommerce High-Performance Order Storage (custom order tables) and only operates on session data.