Title: Which cache plugin work with IQ?
Last modified: August 21, 2016

---

# Which cache plugin work with IQ?

 *  Resolved [jangsan](https://wordpress.org/support/users/jangsan/)
 * (@jangsan)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/which-cache-plugin-work-with-iq/)
 * Hello,Pascal
 * I really like IQ Block Plugin. Even I uninstall the Varnish for this Plugin.
 * But My website has a Higih Traffic (Over 100,000 IP. 700,000,000 Pageviews Per
   Day)
 * So I need a Cache Plugin can work with IQ Block
 * Thanks
 * [https://wordpress.org/plugins/iq-block-country/](https://wordpress.org/plugins/iq-block-country/)

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Plugin Author [Pascal](https://wordpress.org/support/users/iqpascal/)
 * (@iqpascal)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/which-cache-plugin-work-with-iq/#post-4660460)
 * Hi Jangsan,
 * The plugin can work with Varnish, nginx or other real caching software as long
   as they are configured properly.
 * Of course due to the fact pages get cached in Varnish or other caching software
   the cache may display a page to a unwanted visitor from a country.
 * My plugin makes sure that a “You are not allowed here” message does not get cached
   by caching software as that would be bad.
 * If you are able to install a real Varnish server there are ways to do the Geo
   blocking on the varnish server making this plugin irrelevant.
 *  Thread Starter [jangsan](https://wordpress.org/support/users/jangsan/)
 * (@jangsan)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/which-cache-plugin-work-with-iq/#post-4660517)
 * Hello,Pascal
 * Thanks for your responded. I don’t know how to configure the Varnish to work 
   with IQ.
 * I tried to install the Real Ip module. And checked that the Real-ip worked as
   well. And the WordPress can get the Real ip. But the IQ failed.
 * So I rebuild the Server for IQ plugin. Yes, there are some ways can block a Country.
 * And I spend 7days to install the Geoip on Varnish. I search lots of Geoip installation
   Tutorials on Google.and tried to setup the server follow the tutorials. But all
   of the tutorials not work for me. Both of them I don’t understand. Because they
   are not detailed.
 * I think the problem is at my end. Because I m not good at English
 *  Plugin Author [Pascal](https://wordpress.org/support/users/iqpascal/)
 * (@iqpascal)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/which-cache-plugin-work-with-iq/#post-4660566)
 * The real issue is that it does not make much sense to use the iQ Block Country
   plugin on a site that uses caching other than to block hits on the admin site.
 * The primary point of using a cache is to not serve wordpress pages from within
   wordpress but have them cached for X time to make the site faster for high volume
   sites.
 * To configure Varnish so it performs the best with your site you probably should
   hire a Varnish specialist / system engineer that can fine tune the configuration.
 *  [Nitroweb](https://wordpress.org/support/users/spyrosvl/)
 * (@spyrosvl)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/which-cache-plugin-work-with-iq/#post-4660761)
 * Hello,
 * To help jangsan, here is what I did:
    1. Install nginx + varnish (via Apachebooster
   for cPanel) 2. install mod_reverseproxy ([http://www.prajith.in/mod_reveseproxy/](http://www.prajith.in/mod_reveseproxy/))
   3. install mod_rpaf-2.0.so ([http://vova-zms.blogspot.gr/2012/07/install-modrpaf-with-apache-24.html](http://vova-zms.blogspot.gr/2012/07/install-modrpaf-with-apache-24.html))
 * On Apach 2.4 mod_rpaf will not install unless you edit the installation file 
   and replace “remote_” with “client_” in “mod_rpaf-2.0.c”
 * The above gave me ther right IP on Apache logs and the right remote address on
   PHP.
 * —- BUT —-
 * HTTP_X_REAL_IP is what nginx will give to you.
 * [@pascal](https://wordpress.org/support/users/pascal/), can you add this check
   first?
    On line 175 of main pllugin file the `function iqblockcountry_get_ipaddress`
   will check the `HTTP_X_FORWARDED_FOR` So, can you please add a check for `HTTP_X_REAL_IP`
   first? This should make it compatible with nginx / varnish.
 * Thank you in advance.
 * Best regards,
    Spyros
 *  Plugin Author [Pascal](https://wordpress.org/support/users/iqpascal/)
 * (@iqpascal)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/which-cache-plugin-work-with-iq/#post-4660762)
 * Hi Spyros,
 * I’ve added this to the current beta version

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Which cache plugin work with IQ?’ is closed to new replies.

 * ![](https://ps.w.org/iq-block-country/assets/icon-128x128.png?rev=3136019)
 * [iQ Block Country](https://wordpress.org/plugins/iq-block-country/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/iq-block-country/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/iq-block-country/)
 * [Active Topics](https://wordpress.org/support/plugin/iq-block-country/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/iq-block-country/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/iq-block-country/reviews/)

## Tags

 * [cache plugin](https://wordpress.org/support/topic-tag/cache-plugin/)

 * 5 replies
 * 3 participants
 * Last reply from: [Pascal](https://wordpress.org/support/users/iqpascal/)
 * Last activity: [12 years, 2 months ago](https://wordpress.org/support/topic/which-cache-plugin-work-with-iq/#post-4660762)
 * Status: resolved