Skip to content

Investigate better way to prevent snippets from caching #200

Open
@sheabunge

Description

@sheabunge

Is your feature request related to a problem? Please describe

We are curently using the code snippet provided below to display a message on the front end of our website (i.e., contact page) indicating whether our business is open or not.

In order for the code snippet to work, we had to disable caching on our contact page.

Describe the solution you'd like

Is there any way (via code snippet, ajax call) we can execute the code snippet provided below without the need to disable caching on our contact page?

Describe alternatives you've considered

Problem solved with another lightweight plugin: Content No Cache.

Additional context

Transposed from support thread by Generosus: How to Prevent PHP Code from Caching

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions