Support » Plugins » wp-super-cache and bad behaviour

  • The new bad behaviour plugin works well with supercache, but it needs one line of code to be added to supercache. It would be great if this line, maybe with a check, could be added to the super cache trunk, to let it work without any hack.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi aronchi, what hack are you referring too?

    I’ve been a happy user of both wp-cache & BB for some time now, I’ve been thinking about upgrading/migrating to WP-SuperCache, but have worried about on the documentation

    Some plugins like SK2, Bad Behaviour and others that depend on “fresh” data may not work very well


    Never mind, found it 🙂

    Edit the wp-content/plugins/wp-cache/wp-cache-phase1.php or wp-content/plugins/wp-super-cache/wp-cache-phase1.php file and find the following two lines at around line 34 (line 56 in WP Super Cache):

    ` if (! ($meta = unserialize(@file_get_contents($meta_pathname))) )

    Immediately after this, insert the following line:

    require_once( ABSPATH . wp-content/plugins/Bad-Behavior/bad-behavior-generic.php');

    Then visit your site. Everything should work normally, but spammers will not be able to access your cached pages either.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘wp-super-cache and bad behaviour’ is closed to new replies.