Wordpress LScache Plugin: WP init hook
Last Updated on: Wed, 15 Apr 2026 00:00:02 Hi, A plugin developer told me that their plugin is only compatible with caching plugins that use the WP init hook . Does litespeed use this, or is it possible to include it? Thanks Yes it does Ok, then it should work with the plugin but its not working for some reason? I tried with WP Fastest Cache and enabled the option Late init. Display cached files after WordPress has loaded. and the plugin worked correctly. Do i need to specifically activate Late Init in Litespeed, or is this already activated? The plugin im trying to get working is this: https://en-gb.wordpress.org/plugins/blackhole-bad-bots/ Following. Also here is some further info about Blackhole for Bad Bots: There are many types of cache plugins. They provide all sorts of different caching mechanisms and features. All caching features work great with Blackhole except for page caching . With page caching, the required init hook may not be fired, which means that plugins like Blackhole for Bad Bots are not able to check the request to see if it should be blocked. Fortunately, two of the most popular caching plugins provide settings that enable full compatibility with Blackhole. From: https://plugin-planet.com/blackhole-pro-cache-plugins/ @jeff Blackhole works great with Super Cache, although im reluctant to use that plugin as there have been a lot of security issues with it in the past and i just dont know whether its safe to use it or not. Even recent forum posters have stated they were infected with malware after installing Super Cache. In previous comment i meant to say Super Cache not Fastest Cache. Understood, however I was posting on this thread more for the sake of LiteSpeed Dev, who may not be aware of our previous discussion. Hopefully it will be useful. Also, still waiting to hear back about WP Rocket, will report on the other/previous thread once I know for sure. @martychc23 Can you try to modify litespeed-cache/inc/litespeed-cache.class.php line 102 add_action( after_setup_theme, array( $this, init ) ) , replace after_setup_theme to init and see if it works or not? Sorry, this didnt work. After looking into this further I dont think Blackhole will work when php is bypassed, so it may not be possible to get this working unfortunately. Yes once page cached, it will bypass PHP. This is how server level cache works.
LiteCache Rush: Speed comes from using less, not from doing it faster
Reference