Shared on Mage Dispatch · 18 May 2026

Limit Recently Viewed Products to 10

Caps recently viewed items at 10 on client and server. Trims localStorage and truncates sync requests to prevent bloated storage, huge POSTs, and database hammering, mitigating a simple DoS vector.

1
2
Visit link → https://github.com/Vendic/magento2-recently-viewed-limit

More like this

New here? This is Mage Dispatch

Mage Dispatch is a community-run archive and bi-weekly newsletter for the Magento, Adobe Commerce and Mage-OS ecosystem. Modules, articles, security advisories and tools, hand-picked by developers and shared so good work does not disappear into the void.

Browse the latest links → Explore by topic → Submit a link → About us →