Skip to content

Can a block be cached for period of time? #1591

Closed
@Pakkapao

Description

@Pakkapao

Hi,

Is it possible to cache a block for period of time, for example, it expires every 15 minutes? I would like to display a block on sidebar for all pages and to avoid performance issue as the information inside the block doesn't change frequently.

Is there an xml parameter available to do that?

<referenceContainer name="sidebar.additional">
    <block class="xxx" before="-" name="xxx" template="xxx.phtml" cacheable="true"/>
</referenceContainer>

Thanks,

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue: Format is not validGate 1 Failed. Automatic verification of issue format is failed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions