Skip to content

Recently viewed products block not working in product page with enabled cache #3890

Closed
@kandrejevs

Description

@kandrejevs

Steps to reproduce

  1. add:
    <block class="Magento\Reports\Block\Product\Widget\Viewed" page_size="4" name="recently_viewed" template="widget/viewed/content/viewed_grid.phtml" cacheable="false" /> to catalog_product_view.xml in any container

Expected result:
With enabled cache you should see recently viewed products block in product page.

Actual result:
Block is visible only with disabled cache, when cache is enabled, it does not have output.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions