So, I have been tinkering with a primary firewall plugin and immediately I stumbled upon an issue. Caching. I had forgotten that I had LightSpeed cache put in one one among my take a look at websites and went to work on my plugin. I set it as much as error log some particulars for me and began attempting to load the location’s principal web page. A hour later after dozens of refreshes and nonetheless not seeing any error log I remembered the cache. It doesn’t matter what URI I plugged within the cache took full management and principally disabled my plugin from even loading. First line in my plugin, create an entry within the error log… nothing. The moment I disabled the cache, I had error logs.
The one time LightSpeed allowed my plugin to even run was on the admin aspect. Not on the general public aspect.
So, here is the query. For those who had been planning to jot down some plugin that grabs the incoming URI or IP or consumer agent and do one thing with it, how the hell might you anticipate it to work if these caching plugins utterly bypass and basically disable your plugin anyway?
How might your plugin even detect these cache plugins in the event that they refuse to even let it load and run? Okay, so you can begin in search of directories and headers and such throughout your plugin activation, however assume they set up the cache after your plugin. Then what?
I’ve tried to hook into wp, init, plugins_loaded, muplugins_loaded and lightspeed continues to be managing to bypass my plugin.
So let’s assume for no matter loopy purpose, I needed to dam all IP’s from TOR exit nodes. If the cache will not even let your plugin fireplace, how are you supposed to dam the IP???