Viewing 15 replies - 16 through 30 (of 94 total)
  • Plugin Author Martin Tod

    (@mpntod)

    It doesn’t matter what you choose – probably best to be something non-obvious:

    w3tc_render_to=elephant

    and add the following line to wp-config.php:

    define('W3TC_DYNAMIC_SECURITY','your_own_secret_and_non_obvious_word_here');

    If it doesn’t work an error message should show up in the HTML!

    Thread Starter optimisto

    (@optimisto)

    I did everything but Late Initialization is grayed and can not be selected.
    If I switch Page Cache Method from Disk: Enhanced to Disk:Basic (I have only these two enabled) – then Late Initialization can be selected.
    What should I do, Martin?

    Thread Starter optimisto

    (@optimisto)

    Oh and I get this error instead of tweets:
    $rt=get_transient(rt_w3tc_the-secret-non-obvious-string);echo $rt;

    Plugin Author Martin Tod

    (@mpntod)

    Do you still get that if logged out? [Something else to add to the error checking]. I think that W3TC doesn’t always run for logged in users!

    Also, what part of the page are the Rotating Tweets on? I think the replacement only works on some elements of the page.

    Plugin Author Martin Tod

    (@mpntod)

    Here’s the link with more details.

    Does it report an error on $rt=get_transient(rt_w3tc_the-secret-non-obvious-string);echo $rt; or just print it out straight?

    Plugin Author Martin Tod

    (@mpntod)

    Just realised it would need to be $rt=get_transient("rt_w3tc_the-secret-non-obvious-string");echo $rt; to work properly.

    I’ve uploaded a corrected version.

    Martin

    Thread Starter optimisto

    (@optimisto)

    I installed this new version – now the error is:
    $rt=get_transient("rt_w3tc_secretstring");echo $rt;

    The error is displayed instead of tweets.

    Yes I get the error logged out too.

    RT is in the header. So far it worked fine, well except for the cache problem.

    BTW – this “secret” string shows up in the HTML in the shortcodes of RT. Would that be a security problem?

    Plugin Author Martin Tod

    (@mpntod)

    The text isn’t the error, it’s the code that should be running – although I’ve just uploaded yet another development version that is trying something different to make the code display.

    If you look at the HTML is the appropriate mfunc code displaying?

    Martin

    Thread Starter optimisto

    (@optimisto)

    This time the HTML lacks anything RT related – just blank:
    <div style="float: left;"></div>

    Plugin Author Martin Tod

    (@mpntod)

    That’s probably a good thing. I’ve added some test code to a new version

    Martin

    Thread Starter optimisto

    (@optimisto)

    Still shows nothing.
    Just to clear things out – I install the plugin by uploading it via FTP, then I flush the W3TC cache.
    The RT settings are:
    [rotatingtweets screen_name='name' show_meta_via ='0' show_meta_timestamp ='0' show_meta_screen_name ='0' exclude_replies ='1' include_rts='1' tweet_count='10' w3tc_render_to='secretstring']
    Connection Settings:
    2
    3
    Yes
    JS Settings
    default
    default

    Plugin Author Martin Tod

    (@mpntod)

    I’m going to have to trial this on my own set-up. It’s not clear why nothing is appearing.

    Thread Starter optimisto

    (@optimisto)

    Makes sense – it would be much easier and faster for you to find a solution. Just to let you know I reinstalled the original “official” release and removed the w3tc shortcode from the header. Now RT shows up correctly, just does not update unless W3TC cache is flushed.
    Thanks again, Martin, I hope you find a way to resole this soon.

    Plugin Author Martin Tod

    (@mpntod)

    OK.

    The other option is that I just tell it to flush the cache every time it updates the Tweets (which would be quite easy to do), but that will reduce the impact of the caching.

    Martin

    Thread Starter optimisto

    (@optimisto)

    Yes, that would be counterproductive.
    I think since there are options to exclude elements from the W3TC caching – there should be some way to tell W3TC not to cache RT.

Viewing 15 replies - 16 through 30 (of 94 total)
  • The topic ‘W3 Total Cache Rotating Tweets = Not updating tweets?’ is closed to new replies.