Issues with the preloader
-
Hello.
I have an issue with the preloader getting stuck.
After searching the forum, I’ve tried this:
add_filter('wpoptimize_preload_delay', 'filter_wpoptimize_preload_delay'); function filter_wpoptimize_preload_delay($preload_delay) { $preload_delay = 2000000; return $preload_delay; }
This way, the prelaoder never gets stuck – but not all posts are preloaded.
Although the first run ran through about 200 posts, only about 70 were preloaded. It took me about 8 manual clicks on “Run now” in order the cache the whole 200.
Can it be fixed or optimized with another filter?
Maybe the plugin can mark posts that failed to preload and retry them? Or, at the end of every preload run the plugin can check if the list of URLs has emptied, and if not – re-run?
(BTW, you have a typo here: https://drive.google.com/file/d/1nkVWmO57yrTqMYPf3kgKsJophzk2aniA/view?usp=drivesdk. I see you don’t have a GitHub repo for such things)
- The topic ‘Issues with the preloader’ is closed to new replies.