• Resolved ulang66

    (@ulang66)


    I use WP Rocket. It apparently doesn’t work with it. Countries on the blocking list are not blocked. As soon as I deactivate WP Rocket, it works perfect. What do I need to set in WP Rocket for it to work? I am testing the function via VPN. It’s strange that I can load the website without any problems, but in the log area of IP Location Block, the IP i use is shown as blocked.

    • This topic was modified 7 months, 1 week ago by ulang66. Reason: addition
Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Darko G.

    (@darkog)

    Hey @ulang66 – It’s because of WP Rocket caching the pages and serving cached pages which defeats the purpose of any dynamic plugins like this.

    Luckily depending on the hosting environment, it may be possible to kick off our IP Location Block plugin just before “WP Rocket”, this way the requests will still be checked by IP Location Block. To do that, please set the “Validation Timing” setting to “mu-plugins”.

    Some people had success with this option, but generally IP Location Block shouldn’t be used with caching plugins especially ones that does not work with the Validation Timing option.

    Thread Starter ulang66

    (@ulang66)

    Unfortunately, it doesn’t work for me with “mu-plugins”. I also tried the helper plugin WP Rocket | Disable Page Caching on the advice of WP Rocket support. It would work with that, but then the pages load too slowly, so I can’t use it like that. Then I probably have to assume that I have no chance to use your IP Location Block with WP Rocket, although it would certainly be a great plugin. You say it may depend on the host environment whether “mu-plugins” works. Do you know which specific settings on the host side could be responsible for this?

    Plugin Author Darko G.

    (@darkog)

    Hey @ulang66 – You can also read the article about caching. I know WP Rocket may not be an option but you can achieve similar results with plugins that support deferred execution and having “Validation Timing” set to “mu-plugins.php” in combination with those plugins.

    https://iplocationblock.com/codex/compatibility-with-cache-plugins/

    Thread Starter ulang66

    (@ulang66)

    I have already read this article. I tried several caching plugins before I decided on WP Rocket. It simply had the best performance for me and caused no problems. Therefore, I can’t just replace it. Thank you for your answers. The hope would be that WP Rocket supports deferred execution one day.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Settings for WP Rocket?’ is closed to new replies.