Skip to content
ms3RecentlyViewed
ms3RecentlyViewed
"Recently viewed products" block for MiniShop3 — browser or DB storage, similar products, manager
  1. Extras
  2. ms3RecentlyViewed
  3. System settings

System settings

All settings use the ms3recentlyviewed. prefix and live in the ms3recentlyviewed namespace.

Where to edit: Manage → System settings (in MODX 3: Settings → System settings) — filter by namespace ms3recentlyviewed.

Settings table

SettingDescriptionDefaultNotes
ms3recentlyviewed.max_itemsMaximum items in “Recently viewed” block (localStorage/cookie and output)2020–50 for most sites; max 100. Enforced in JS when ms3rvLexiconScript is loaded.
ms3recentlyviewed.storage_typeStorage type for viewed listlocalStoragelocalStorage — data in browser until cleared; cookie — shared across subdomains, 30-day expiry.
ms3recentlyviewed.sync_enabledSync for logged-in userstrueEnable if you need history across devices. On login, data from localStorage is moved to DB.
ms3recentlyviewed.ttl_daysRecord retention in DB (days)9030–365 days. Used by auto-cleanup and archiving.
ms3recentlyviewed.auto_cleanup_enabledAuto-cleanup of old recordstrueRemoves views older than TTL. Runs once per day on site visit (OnWebPageInit plugin).
ms3recentlyviewed.archive_enabledMonthly archivingtrueAggregates past month data into ms3recentlyviewed_monthly and removes detail rows. Reduces table size. On by default.
ms3recentlyviewed.block_botsExclude search botstrueDo not save crawler views (Googlebot, Yandex, Bing, etc.) to DB. Detected by User-Agent.
ms3recentlyviewed.track_anonymousTrack anonymous userstrueSave guest views to DB. Identified by session. Requires sync enabled.
ms3recentlyviewed.test_idsComma-separated product IDs for admin test page1,2,3Optional.

Setting groups

  • defaultmax_items, storage_type, test_ids (frontend, output block).
  • syncsync_enabled, ttl_days, auto_cleanup_enabled, archive_enabled, block_bots, track_anonymous (DB storage, plugins).

Recommendations

  • max_items: 20–50 for most sites; enforced in JS when ms3rvLexiconScript is loaded.
  • storage_type: cookie — if you need a shared list across subdomains (cookie expiry 30 days).
  • archive_enabled: on by default; with high view volume it reduces main table size.
  • block_bots: on by default — crawler views are not stored in DB.