ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Caching issue

March 04, 2011 8:44am

Subscribe [1]
  • #1 / Mar 04, 2011 8:44am

    Digitaal Dier

    75 posts

    Hi guys,

    I’m working on a site running EE2.1.3. They have a twitter-ticker in 3 places in each page, for which i use 2 embeds. I’ve tried setting caching on the embeds, i’ve tried tag-caching and the twitter-timeline’s built in caching mechanism, but every time a page loads it calls to twitter and gets the timeline. This is really putting an enormous strain on page-load times. Am I missing something here?

    The embeds:

    Bottom

    <article class="titled-box">
                                <div class="inner">
                                    <h2>Twitter</h2>
    <p>                                <div class="block clearfix transparent"><br />
                                        <div class="half first clearfix"><br />
                                            <div class="container clearfix"><br />
                                                <ul class="rounded left"><br />
    {exp:twitter_timeline screen_name="Doornrecords" limit="3" create_links="user_mentions|hashtags|urls" parse="inward" twitter_refresh='20'}<br />
    <li><a href="http://{url}">{screen_name}</a>: {exp:strip_html}{exp:trunchtml chars='55' ending='…'}{text}{/exp:trunchtml}{/exp:strip_html}</li><br />
    {/exp:twitter_timeline}<br />
                                                </ul><br />
                                            </div><br />
                                        </div><br />
                                        <div class="half last"><br />
                                            <div class="container clearfix"><br />
                                                <ul class="rounded left clearfix"><br />
    {exp:twitter_timeline screen_name="sandervandoorn" limit="3" create_links="user_mentions|hashtags|urls" parse="inward" twitter_refresh='20'}<br />
    <li><a href="http://{url}">{screen_name}</a>: {exp:strip_html}{exp:trunchtml chars='55' ending='…'}{text}{/exp:trunchtml}{/exp:strip_html}</li><br />
    {/exp:twitter_timeline}<br />
                                                </ul><br />
                                            </div><br />
                                        </div><br />
                                    </div><br />
                                </div><br />
                            </article>

    Top

    {exp:twitter_timeline screen_name='sandervandoorn' create_links='user_mentions|hashtags|urls' parse='inward' cache='yes' refresh='30' twitter_refresh='20' limit='5'}
        {exp:trunchtml chars='110' ending='…'}{text}{/exp:trunchtml}
    {/exp:twitter_timeline}
.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases