WP Super Cache
[resolved] Cache breaks with mod_rewrite (1 post)

  1. Tzunamii
    Posted 3 years ago #


    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 ^(.*)$ http://blocked.example.com/ [R=301,L]




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

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