


PrestaShop statistics cleanup with a preview, retention controls and transactional batches, plus InnoDB and schema checks. Supports PrestaShop 8.1.x and 9.x. Purchasing is not enabled yet.
Purchase status: Purchasing Stats Table Guard Pro is not enabled yet. This page describes its cleanup workflow. Start with the free Stats Table Guard Lite scanner to inspect your statistics tables.
Stats Table Guard Pro includes the same read-only statistics-table scanner as Lite and adds an explicit cleanup workflow for historical connection statistics. It is built for stores that want to keep old traffic data under control without broad or automatic database cleanup.
Cleanup never starts on page load and saving settings does not trigger deletion. An administrator must first build a cleanup preview and then explicitly start the operation.
Pro only cleans historical rows from connections_page, connections_source and connections. Child rows are deleted before parent rows.
Cleanup does not target customers, orders, carts, products, guests, page statistics or arbitrary database tables.
Choose how many days of connection statistics to keep. The default retention period is 180 days, with common presets for 30, 90, 180 and 365 days plus a custom value.
Cleanup runs in configurable batches from 100 to 5000 rows, with a default batch size of 1000. Each batch uses a database transaction so a failed batch can stop cleanly instead of silently continuing through a partial operation.
PrestaShopLogger.TRUNCATE and no OPTIMIZE TABLE are used.Deleting historical rows does not guarantee that the physical database file will immediately become smaller. InnoDB and server configuration determine whether freed pages are reused internally or whether files can shrink.
Pro keeps the read-only visibility from Lite and adds a tightly scoped cleanup workflow with preview, retention controls, batching and safety validation.
Read-only statistics storage scanner with table-size and historical-date visibility.
View LitePurchasing is not enabled yet.
Scanner plus previewed, retention-based cleanup of historical connection statistics.
Pro is intended for administrators who need to remove old connection statistics after reviewing a preview. Purchasing is not enabled yet. The workflow below explains the cleanup controls described for this edition.
Only three historical connection-statistics tables are part of the destructive workflow: connections_page, connections_source and connections. The cleanup service does not accept an arbitrary table name.
No. Cleanup never starts on page load. It requires an explicit preview and an explicit Start cleanup action.
No. The cleanup scope is hard-limited to the three historical connection-statistics tables listed above.
Not necessarily. InnoDB may reuse freed pages internally without shrinking the physical file.
The destructive cleanup path fails closed. Scanning can continue in a reduced read-only mode, but cleanup is not enabled without the required safety verification.
Yes. Lite and Pro use the same technical module directory and module identity. Pro initializes its additional settings after the Lite files are replaced.
Explore more Performance modules or visit the PrestaSuite documentation for installation and configuration guidance.