• Resolved 3dmodelfree

    (@3dmodelfree)


    hi developers,
    Is preloading an automatic task or it should be triggered regularly?
    if it is automatic, is it triggered after cache expired and how could the cache lifetime be changed/setted in the plugins?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Contributor iSaumya

    (@isaumya)

    Hi @3dmodelfree,
    Have you checked the FAQ tab inside the plugin settings it has already been explained how the preloader works. Screenshot: https://i.imgur.com/ZsU7OBm.png

    The preloader is a simple crawler that is started in the background and aims to preload pages so that they are cached immediately.

    Once the preloader is enabled, you need to specify which preloading logic among those available to use. You can choose a combination of options (sitemaps, wordpress menus, recent published posts, etc ..).

    It is also possible to automatically start the preloader when the cache is cleared.

    In order to avoid overloading the server, only one preloader will be started at once. It is therefore not possible to start more than one preloader at the same time. Furthermore, between one preload and the other there will be a waiting time of 2 seconds.

    If you want to run the preloader at middle of the night when you have low users, you can run the preloader over CRON job as well.

    So, in short, the preloader gets run when you clear the whole cache or update your post/pages. But if you want to run the preloader manually you can always set up a cron job to run once in the middle of the night.

    Let me know if you have any further questions.

    • This reply was modified 4 years, 6 months ago by iSaumya.
    Thread Starter 3dmodelfree

    (@3dmodelfree)

    Well thank you for mentioning the FAQ, I had read it but it was worth mentioning. I was wondering specifically to have control over preloading. For example, when it was started or will be started, how long does it take until it ends? how many links are provided for preloading and where is the progress of this job? or The ability to pause the preloading and resume it again.

    Plugin Contributor iSaumya

    (@isaumya)

    Hi @3dmodelfree,

    For example, when it was started or will be started, how long does it take until it ends?

    That totally depends on the number of links the preloader has to preload and have it in it’s queue. For each link a separate peloader doesn’t get generated. All links are get inside a queue and the preloader processes them all one by one in a single run.

    how many links are provided for preloading

    The default max number of items in a preloader is 50 to ensure your server doesn’t get overloaded. But you can use the SWCFPC_PRELOADER_MAX_POST_NUMBER constant to increase that number. It is already mentioned in the FAQ tab.

    where is the progress of this job?

    If you want to check the progress, enable the log mode, and check the logs as it will constant get updated with the progress.

    The ability to pause the preloading and resume it again.

    You cannot pause the preloader but when a preloader is running you will see an Unlock Preloader button clicking on which it stops the current preloading operation.

    • This reply was modified 4 years, 6 months ago by iSaumya.
    Thread Starter 3dmodelfree

    (@3dmodelfree)

    well a strange thing happens!
    I added 10 different site map URL in preload and click on “update settings”, but after reloading the settings it only keeps line 1! (each site maps has 1001 links)
    I also changed “Fallback cache TTL” to 3600 and click on “update settings” and after updating the page the setting changed to zero again! (its default value)!!!!

    Thread Starter 3dmodelfree

    (@3dmodelfree)

    well after debugging all pages cached! wrong settings!
    problem solved with attention to the FAQ!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘preloader strategy’ is closed to new replies.