Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Raam Dev

    (@raamdev)

    @sapu78 You can add define('DONOTCACHEPAGE', TRUE) to the top of whatever PHP page you don’t want cached. See the Theme/Plugin Developers section (Dashboard → Quick Cache → Theme/Plugin Developers).

    Thread Starter sapu78

    (@sapu78)

    dear ramm dev

    thank you for your quick replay. unfortunately, we’re still experiencing problems with the plugin.

    the speed went up a lots of points (google speedtest) but the webcam is still cached and people are complaining, thet the webcam is not live….

    pls check out http://www.randa.ch

    the develepper tried to exclude the home for quick cache as you describet – but it seams not working.

    any idea? I really want quick cache enabled (cause of seo impact) but if the webcam remains cached, i’ll hace to deactivate.

    is it possible to send you an email / give you access?

    txs for your help
    paul

    Plugin Author Raam Dev

    (@raamdev)

    If you’re a Quick Cache Pro user, you can open a trouble ticket, otherwise I can only offer help here through the WordPress.org Forums.

    The <?php define('DONOTCACHEPAGE', TRUE); ?> is very simple to add. Alternatively, you could add something like the following to your theme’s header.php file:

    <?php
    if( is_home() || is_front_page() ) {
        define('DONOTCACHEPAGE', TRUE);
    }
    ?>
    Thread Starter sapu78

    (@sapu78)

    thanks.

    if i would know, that it’s working, i would go for pro….

    this is in the header:
    http://screencast.com/t/rV34gdfPM

    but as you can see – the page is still chached:
    http://www.randa.ch

    Thread Starter sapu78

    (@sapu78)

    so i could manage that the home ist not cached with this in the header.php. i cannot find the notes in the source of the home (which ist correct)…. but i can also not find the notes on any other page. so it seams as qc is not working at all?

    <?php
    if ( is_page('402') or  is_page('95') ) {
    echo '<meta http-equiv="expires" content="0" />';
    echo '<meta http-equiv="Cache-Control" CONTENT="no-cache" />';
    echo '<meta http-equiv="Pragma" CONTENT="no-cache" />';
    define('QUICK_CACHE_ALLOWED', FALSE);
    }
    ?>

    Plugin Author Raam Dev

    (@raamdev)

    If you remove that code from header.php, do the Quick Cache notes show up anywhere?

    If Quick Cache isn’t working, then we should fix that first. There are a few possible reasons that Quick Cache might not be working. I would start with disabling other plugins and switching to the default TwentyFourteen theme to see if a plugin or theme conflict is the cause.

    If there’s no plugin or theme conflict, then it might be an issue with your server configuration and you’ll need to look at the PHP error log on the server to see if there are any clues there.

    If you have that image on only one page what you can do as a work around is to install these two plugins. It works for me on my site: http://www.protein-energy-shakes.com. (Just check the source code and you know it isn’t cached).

    First thing your are going to do after you activate both plugins is drag the PHP Code widget in to the Widgets on Pages area (it will show up in the right column in the widgets area). Put the following code in to the box (text area) on the PHP Code widget <?php define('QUICK_CACHE_ALLOWED', FALSE); ?> then put the shortcode it gives you anywhere in the content area of the page that contains the above jpeg file.

    This is the only way I was able to get it to work. That way you don’t have to dig in to the themes hard code and have it erased on the next update. Don’t worry it won’t show up anywhere in the content area, completely unnoticeable.

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘deactivate quick cache for specific folder / image’ is closed to new replies.