• Resolved asafm7

    (@asafm7)


    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)

Viewing 1 replies (of 1 total)
  • Plugin Support vupdraft

    (@vupdraft)

    Thank you for the typo

    Using add_filter(‘wpo_page_cache_preload_memory_threshold’, 10485760);
    That filter lets you change how much memory should be left before interrupting the preload queue (10MB by default).

    – Using add_filter(‘wpo_page_cache_preload_continue_interval’, 600);
    This filter enables to change the time before the preload resumes when interrupted (600s by Default).

Viewing 1 replies (of 1 total)
  • The topic ‘Issues with the preloader’ is closed to new replies.