• Thanks for providing this. Does this work with WP Rocket? I have added the Ajax Widget to my widget sidebar, but they still appear to be cached. The latest version of WordPress installed.

    UPDATE

    Ah, I see now. I think you need to add the shortcodes inside of the ajax widget. I thought you just placed this on the sidebar and the whole sidebar wouldn’t be cached. A majority of my sidebar is ajax and some of the custom plugins I use don’t have shortcodes.

    UPDATE 2

    I have found a way to fix this. For those looking to remove the cache for the whole sidebar, or various other plugins, you can add them to the ‘Exclude’ list. Go to your cache plugin. Find the exclude pages/post part. Add your plugin files/folder to the exclude list. In my case, it was my sidebar.

    /wp-content/themes/<theme name>/sidebar.php

    If you add /wp-content/plugins/< you’re ajax plugin folder> it may also exclude this from the sidebar from being cached. I was looking to remove the cache for the whole sidebar, so if you have a few plugins with shortcodes perhaps use this plugin or exclude the files manually. My whole sidebar is now not being cached!

    • This topic was modified 5 years, 3 months ago by Disparity.
    • This topic was modified 5 years, 3 months ago by Disparity.
    • This topic was modified 5 years, 3 months ago by Disparity.
    • This topic was modified 5 years, 3 months ago by Disparity.
    • This topic was modified 5 years, 3 months ago by Disparity.
  • The topic ‘WP Rocket’ is closed to new replies.