• Resolved najram

    (@najram)


    Hello there,

    must admit I’m a bit puzzled about the possible use of this plugin…

    Is it just an alternative way to exclude pages from being cached? Or, it enables pages, that normally should not be cached, to be cached anyway?

    For example, I’m using Ultimate Member on some of my sites. Some of it’s pages (user profile, login, register etc.) must be excluded from caching (https://docs.ultimatemember.com/article/1595-caching-problems/).
    Using Content No Cache plugin, could they be safely cached anyway?

    Thank you. ??

    • This topic was modified 2 years, 8 months ago by najram.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Jose

    (@giuse)

    Hi @najram

    you don’t need this plugin to exclude the entire page from the cache.
    This plugin is to exclude a part of the page from the cache.

    I will do a stupid example to clarify how it works.

    Imagine you have a page that has this content:

    Hello this is some text.
    Another line of text
    Another line of text
    Current day: Monday

    if you serve that page with full page cache, the user will always see:

    Hello this is some text.
    Another line of text
    Another line of text
    Current day: Monday

    If you need that the last line of text is always taken by the last updated version of that text you can use this plugin. The entire page will be served by the cache, but the plugin will get the updated content of the last line and update the page with the updated content.

    To do so you need:

    Create a new element “Content No Cache” that will include the content you want to exclude from the cache
    Copy the shortcode that you will see in the section “Shortcode”. It will look like [content_no_cache id=”3328″]. The parameter “id” is the ID of the content element (in this example 3328).
    Add the shortcode to the page where you want to display that content.

    Let me know if it’s clear.

    Thread Starter najram

    (@najram)

    Ah I see, now it is perfectly clear!

    Thank you.
    Cheers

    P.S. I’ve discovered your plugins not so far ago and started to use some of them (mostly oxygen-related) with great satisfaction. Please, keep up an outstanding work. ??

    Plugin Author Jose

    (@giuse)

    Many thanks to you @najram! I’m happy that you like them.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Using it with UM?’ is closed to new replies.