WP Super Cache
Plugin Compatibility (4 posts)

  1. Robert Chapin
    Posted 3 years ago #

    I need help making one of my plugins compatible with WP Super Cache. I need to always serve a dynamic response based on an IP address, or possibly based on the user-agent string, but not break the cache for everyone else. If it would work in WP Super Cache PHP mode, that would be adequate.


  2. Robert Chapin
    Posted 3 years ago #

    I was testing some ideas with the "Rejected User Agents" setting. That setting actually does not work. The related function always bails on this line of code:

    if (!function_exists('apache_request_headers')) return false;

    Bug seen in wp-cache-phase1.php.

    Related bug:

    If the above code actually worked, then this message on the admin screen would be invalid in php mode: "Note that super cached files are still sent to these agents if they already exists."

  3. Robert Chapin
    Posted 3 years ago #

    Regarding top post: I think I can use the do_cacheaction( 'cache_init' ) hook if my plugin users are willing to do the extra steps to enable a Super Cache sub-plugin. I'm surprised that hook isn't mentioned in the "WP Super Cache for Developers" page or the readme file.

  4. Robert Chapin
    Posted 3 years ago #

    Next bug: There is no way to switch back from mod_rewrite mode to PHP mode from the settings page. The .htaccess file still contains all of the Super Cache code, which then must be deleted manually.

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


No tags yet.