WP Super Cache
Disable or different caching time for sidebar widget (3 posts)

  1. polynatiag
    Posted 3 years ago #


    I have a sidebar widget: http://wordpress.org/extend/plugins/teamspeak-3-viewer-plugin-for-wordpress-widget/

    I would like to change the caching time from the default to 3 minutes, only for this widget. If that's not possible, I would like to disable caching for this sidebar widget all together. I tried adding /ts3/ or ts3_wp_viewer\.php, but this didn't work to prevent caching.

    Is there any way to do this?



  2. Donncha O Caoimh
    Plugin Author

    Posted 3 years ago #

    Look up the FAQ About keeping parts of a page dynamic in the readme.txt or docs.

  3. polynatiag
    Posted 3 years ago #


    I tried adding the following to my widget but it doesn't work:


    How should I place those tags?

    Thank you

    EDIT: I also tried placing them in the ts3_wp_viewer.php file. Start of the tag just under description (line 11~) and the end just before ?> on the end (line 145~) but doing this gave me error 500 on the page. Logs said:stderr: PHP message: PHP Parse error: syntax error, unexpected '<' in <path>/public_html/community/wp-content/plugins/teamspeak-3-viewer-plugin-for-wordpress-widget/ts3_wp_viewer.php on line 11, referer: https://obeygaming.com/community/wp-admin/widgets.php

    EDIT2: I also tried putting the tags all the way on the top and all the way on the bottom. This didn't generate an error but it's still caching, so doesn't seem to be working.

    EDIT3: For reference, this is the file I need to edit right? Where should I put the tags? http://pastebin.com/H1ZE9zi6

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP Super Cache
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic