WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. polynatiag
    Member
    Posted 1 year ago #

    Hi,

    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?

    Thanks!

    http://wordpress.org/extend/plugins/wp-super-cache/

  2. Donncha O Caoimh
    Member
    Plugin Author

    Posted 1 year ago #

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

  3. polynatiag
    Member
    Posted 1 year ago #

    Hi,

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

    <!--dynamic-cached-content-->
    [ts3_wp_viewer]
    <!--/dynamic-cached-content-->

    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

About this Topic