wp-super-cache and bad behaviour (3 posts)

  1. aronchi
    Posted 8 years ago #

    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.

  2. linickx
    Posted 8 years ago #

    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


  3. linickx
    Posted 8 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic