• Resolved verseleo

    (@verseleo)


    Hello!

    I’m using of “smart slider plugin” for the front page of my website.
    It provides the “Generators slides” and it needs to refresh the content, for example, every 5 hours to show the new or random contents to users. (also It have internal cache management)
    I want to know that It’s possible to exclude it from the W3 cache?

    Thank you

    The page I need help with: [log in to see the link]

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @verseleo,

    I am sorry about the issue you are having with “smart slider plugin” and I am happy to assist you with this.
    If you have minify enabled (on Auto), you can exclude js and CSS files of the mentioned plugin from being minified as that might cause your issue.
    In Performance>Minify scroll down to advanced sub-box and add the path of JS and CSS files of the mentioned plugin in “Never minify the following JS files:” and “Never minify the following CSS files:” text area.
    I.E.
    Js:
    wp-content/plugins/smart-slider-plugin/includes/somejsfile.js

    and CSS:
    wp-content/plugins/fsmart-slider-plugin/somecssfile.css

    I hope this helps.

    Thread Starter verseleo

    (@verseleo)

    Hello @vmarko
    You’re welcome! and Thanks for your reply and assist me.

    I’m using Cloudflare to Minify.
    Maybe I couldn’t explain very well.
    The issue this is how to allow working smart slider to work without cache system?
    or exclude it from W3TC to run normally without affecting W3TC?

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @verseleo,

    It is possible to exclude it from W3 Total Cache with the example provided in the previous message.
    SO, if you are using W3 Total Cache minify you should exclude Smart slider JS and CSS files i.e.:
    /wp-content/cache/nextend/(.*).css
    /wp-content/plugins/nextend-smart-slider3-pro/(.*).css
    /wp-content/plugins/smart-slider-3/(.*).css
    and this to the exclude js:

    /wp-content/cache/nextend/(.*).js
    /wp-content/plugins/nextend-smart-slider3-pro/(.*).js
    /wp-content/plugins/smart-slider-3/(.*).js

    However, if Cloudflare minify is causing Smart slider plugin not to appear as expected, you should check this Cloudflare guide https://support.cloudflare.com/hc/en-us/articles/200169436-How-can-I-have-Rocket-Loader-ignore-specific-JavaScripts-
    You can easily test if Cloudflare minify is causing the issue by disabling it.
    I hope this helps.

    Thread Starter verseleo

    (@verseleo)

    Hello @vmarko

    I think that it is not relevant to the minify!
    Because by disabling Cloudflare or test on a stage site without Cloudflare enabled on it, The problem still exists.
    Only by “empty only the disk cache”, Smart Slider will be refresh with the new content.

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @verseleo,
    Thank you for the provided info. There is a couple of things that you can do. You can exclude that entire page from being cached in Performance>Page Cache, advanced sub-box, “Never cache following pages:” field.
    You can also use the Page Fragment Cache. With this, you can wrap the desired PHP code with mfunc so the dynamic part of the page will stay that way and it will not be cached.
    One more thing that you can do is to use Fragment Cache extension in W3 Total Cache. Please note that Fragment Cache extension is a pro feature and can be only used with a Pro license.
    I hope this helps.

    Thread Starter verseleo

    (@verseleo)

    Hello @vmarko
    Thank you

    Is Page Fragment Cache different from Fragment Cache extension?
    I can’t find Page Fragment section.

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @verseleo,

    I am sorry I was not more precise explaining this. Yes, Page Fragment Cache is different from the Fragment Cache Extension.
    Fragment Cache module which was developed in W3 Total Cache for capturing the output of do_action() calls, or when theme uses our functions to store/get some values.
    Page Fragment Caching used to wrap a PHP code with <!–mfunc –> comment.
    Also, Fragment Cache is a Pro extension, and you can check more details about it on our wiki page
    To apply Page Fragment Cache Please check out our Wiki page and this article.
    I hope this helps.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Exclude a PHP’ is closed to new replies.