Support » Plugin: WP Super Cache » Cache breaks with mod_rewrite

  • Resolved Tzunamii



    I have been using WP Super Cache successfully for some time now, but now I need some professional advice, please.

    I’m using a basic GEOIP redirect using .htaccess and mod_rewrite to block certain countries out of necessity.

    The site works well when the rewrite is in place and the rewrite itself works as intended. However, WP Super Cache breaks when it tries to preload. Instead of pushing the posts/pages into the WP Super Cache it loads them into WP Cache, according to the plugin itself.

    RewriteEngine on
    RewriteCond %{ENV:GEOIP_COUNTRY_CODE} ^(CN|RU)$
    RewriteRule ^(.*)$ [R=301,L]




    The debug textfile says ‘Supercache caching disabled. Only using wp-cache. Non empty GET request.‘ when it tries to preload.

  • The topic ‘Cache breaks with mod_rewrite’ is closed to new replies.