WordPress.org

Forums

WP Super Cache
Excluding Part of PHP (2 posts)

  1. donelpasso
    Member
    Posted 3 years ago #

    Hello
    I want to exclude the follow PHP Part from caching:

    <?php
    $uhrzeit = date('s');
        if ( $uhrzeit < 10 )
    {
        echo 'something1';
    }
    else if ( $uhrzeit < 20 )
    {
        echo 'something2';
    }
     else if ( $uhrzeit < 30 )
    {
        echo 'something1';
    }
    else if ( $uhrzeit < 40 )
    {
        echo 'something2';
    }
    else if ( $uhrzeit < 50 )
    {
        echo 'something1';
    }
     else
    {
        echo 'something2';

    How can i do that?
    Greetings

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

  2. Donncha O Caoimh
    Member
    Plugin Author

    Posted 3 years ago #

    Look in the docs for the dynamic content section.

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