WordPress.org

Ready to get started?Download WordPress

Forums

WP Super Cache
Hint, use $_GET [ 'nowpsupercache' ] (2 posts)

  1. Larysa Mykhas
    Member
    Posted 3 years ago #

    I thought I share these few lines, I use them to switch the caching on the fly, if I need to test something:

    function do_not_cache () {
      if ( ! defined ( 'DONOTCACHEPAGE' ) ) {
        define ( 'DONOTCACHEPAGE', true );
      }
    }
    
    if ( isset ( $_GET [ 'nowpsupercache' ] ) ) {
      not_cache ();
    }

    Then just add the parameter to the URL.

    E.g. http://nedotorkani.com/?nowpsupercache

    Simple and handy.

    Donncha, maybe you could add it to the plugin itself.

  2. Donncha O Caoimh
    Member
    Plugin Author

    Posted 3 years ago #

    Interesting idea. It might have implications for potential nastyness though so the key should be kept secret.

    I might add something like this however. Thanks!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic