• Resolved mmcgttvr

    (@mmcgttvr)


    I’ve just installed this plugin on a couple of my sites. I’ve kicked off the preload process, but it’s taking about 15 mins to preload each page. Is this normal?

Viewing 5 replies - 1 through 5 (of 5 total)
  • @mmcgttvr

    It shouldn’t take 15 mins per page.

    But if the max memory is close to being reached when preloading a page, it will stop, and reschedule a preloading task 10mins later.

    However, can you please enable Error logging from WP-Optmize > Settings > Logging settings, Select Log events into the PHP error log, Save the settings and re-run the optmization.

    It should log the error in PHP error log if there are any errors, Please share the error logs to dropbox and share the link with us.

    Thanks,
    Harshad

    • This reply was modified 4 years, 7 months ago by Harshad.
    • This reply was modified 4 years, 7 months ago by Harshad.
    Thread Starter mmcgttvr

    (@mmcgttvr)

    The rrror logs are just showing information messages – which seems to relate to the preload…

    [02-Sep-2019 08:32:40 UTC] [INFO] : A total of 54 tasks of type load-url-task found and will be processed in this iteration
    [02-Sep-2019 08:32:40 UTC] [INFO] : Set semaphore last lock (load-url-task) time to 2019-09-02 08:32:40
    [02-Sep-2019 08:32:40 UTC] [INFO] : Semaphore lock (load-url-task) complete
    [02-Sep-2019 08:32:40 UTC] [INFO] : Processing task with ID : 281, and type ‘load-url-task’
    [02-Sep-2019 08:32:40 UTC] [INFO] : preload_desktop – https://<url>/
    [02-Sep-2019 08:32:40 UTC] [INFO] : preload_mobile – https://<url>/
    [02-Sep-2019 08:32:42 UTC] [INFO] : Completed processing task with ID : 281, and type ‘load-url-task’
    [02-Sep-2019 08:32:42 UTC] [INFO] : Decremented the semaphore (load-url-task) by 1
    [02-Sep-2019 08:32:42 UTC] [INFO] : Semaphore (load-url-task) unlocked
    [02-Sep-2019 08:32:42 UTC] [INFO] : Successfully processed the queue (load-url-task). 1 tasks were processed out of 54.
    [02-Sep-2019 08:32:42 UTC] [INFO] : Semaphore (load-url-task, wp_clfdoptions) was successfully cleaned up
    [02-Sep-2019 08:42:40 UTC] [INFO] : A total of 53 tasks of type load-url-task found and will be processed in this iteration
    [02-Sep-2019 08:42:40 UTC] [INFO] : Set semaphore last lock (load-url-task) time to 2019-09-02 08:42:40
    [02-Sep-2019 08:42:40 UTC] [INFO] : Semaphore lock (load-url-task) complete
    [02-Sep-2019 08:42:40 UTC] [INFO] : Processing task with ID : 280, and type ‘load-url-task’
    [02-Sep-2019 08:42:40 UTC] [INFO] : preload_desktop – https://<url>/
    [02-Sep-2019 08:42:42 UTC] [INFO] : preload_mobile – https://<url>/
    [02-Sep-2019 08:42:43 UTC] [INFO] : Completed processing task with ID : 280, and type ‘load-url-task’
    [02-Sep-2019 08:42:43 UTC] [INFO] : Decremented the semaphore (load-url-task) by 1
    [02-Sep-2019 08:42:43 UTC] [INFO] : Semaphore (load-url-task) unlocked
    [02-Sep-2019 08:42:43 UTC] [INFO] : Successfully processed the queue (load-url-task). 1 tasks were processed out of 53.
    [02-Sep-2019 08:42:43 UTC] [INFO] : Semaphore (load-url-task, wp_clfdoptions) was successfully cleaned up
    [02-Sep-2019 08:52:40 UTC] [INFO] : A total of 52 tasks of type load-url-task found and will be processed in this iteration
    [02-Sep-2019 08:52:40 UTC] [INFO] : Set semaphore last lock (load-url-task) time to 2019-09-02 08:52:40
    [02-Sep-2019 08:52:40 UTC] [INFO] : Semaphore lock (load-url-task) complete
    [02-Sep-2019 08:52:40 UTC] [INFO] : Processing task with ID : 279, and type ‘load-url-task’
    [02-Sep-2019 08:52:40 UTC] [INFO] : preload_desktop – https://<url>/
    [02-Sep-2019 08:52:40 UTC] [INFO] : preload_mobile – https://<url>/
    [02-Sep-2019 08:52:42 UTC] [INFO] : Completed processing task with ID : 279, and type ‘load-url-task’
    [02-Sep-2019 08:52:42 UTC] [INFO] : Decremented the semaphore (load-url-task) by 1
    [02-Sep-2019 08:52:42 UTC] [INFO] : Semaphore (load-url-task) unlocked
    [02-Sep-2019 08:52:42 UTC] [INFO] : Successfully processed the queue (load-url-task). 1 tasks were processed out of 52.
    [02-Sep-2019 08:52:42 UTC] [INFO] : Semaphore (load-url-task, wp_clfdoptions) was successfully cleaned up
    [02-Sep-2019 09:02:40 UTC] [INFO] : A total of 51 tasks of type load-url-task found and will be processed in this iteration
    [02-Sep-2019 09:02:40 UTC] [INFO] : Set semaphore last lock (load-url-task) time to 2019-09-02 09:02:40
    [02-Sep-2019 09:02:40 UTC] [INFO] : Semaphore lock (load-url-task) complete
    [02-Sep-2019 09:02:40 UTC] [INFO] : Processing task with ID : 278, and type ‘load-url-task’
    [02-Sep-2019 09:02:40 UTC] [INFO] : preload_desktop – https://<url>/
    [02-Sep-2019 09:02:40 UTC] [INFO] : preload_mobile – https://<url>/
    [02-Sep-2019 09:02:42 UTC] [INFO] : Completed processing task with ID : 278, and type ‘load-url-task’
    [02-Sep-2019 09:02:42 UTC] [INFO] : Decremented the semaphore (load-url-task) by 1
    [02-Sep-2019 09:02:42 UTC] [INFO] : Semaphore (load-url-task) unlocked
    [02-Sep-2019 09:02:42 UTC] [INFO] : Successfully processed the queue (load-url-task). 1 tasks were processed out of 51.
    [02-Sep-2019 09:02:42 UTC] [INFO] : Semaphore (load-url-task, wp_clfdoptions) was successfully cleaned up
    [02-Sep-2019 09:12:41 UTC] [INFO] : A total of 50 tasks of type load-url-task found and will be processed in this iteration
    [02-Sep-2019 09:12:41 UTC] [INFO] : Set semaphore last lock (load-url-task) time to 2019-09-02 09:12:41
    [02-Sep-2019 09:12:41 UTC] [INFO] : Semaphore lock (load-url-task) complete
    [02-Sep-2019 09:12:41 UTC] [INFO] : Processing task with ID : 277, and type ‘load-url-task’

    Thread Starter mmcgttvr

    (@mmcgttvr)

    Any other thoughts on this? Other than the above, I didn’t see any other messages in the PHO error logs.

    Hi @mmcgttvr

    Looking at the log, it’s only taking a couple of seconds to preload an URL, but then stops because it seemingly reaches a memory limit (this is as feature of the preloader to avoid killing the process abruptly when running out of memory).

    Do you know the maximum memory set for PHP on your sever?

    You can bypass this by adding the following code somewhere (e.g. in a mu-plugin):

    add_filter('updraft_interrupt_tasks_queue_load-url-task', '__return_false'), 30);

    You can also reduce the time until resumption by adding the following code:

    add_filter('wpo_page_cache_preload_continue_interval', 'my_prefix_change_continue_interval');
    function my_prefix_change_continue_interval($interval) {
        return '30'; // time in seconds
    }
    

    Correction, it should be return 30;, not return '30';

    NB. You should adapt the values and test this code before adding it to your live site.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Cache -> Preload Taking a Long Time to Run’ is closed to new replies.