• Could you please advise how those 2 features affect CPU/resource usage on the server ?
    I’ve tested ‘in viewport’ and suddenly my server cannot handle the workload. Usually my CPU consumes about 20-70% throughout the day. When i turn the function ON, it goes upto 100%.

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

    (@isaumya)

    Hi,
    it’s very hard to say as it totally depends on your server’s capacity and hardware. The prefetches (whether just viewport or hover) prefetches the links in the webpage either when the page is loaded (viewport mode) or when someone hovers on any links (if hover mode enabled).

    Now generally these modes don’t cause any problem as the browser will prefetch the items only when it is idle to do that. Moreover when a page is not cached in CF the request will reach to your server and served by your origin sever at that time CF will cache it. So, after a page is cached on CF prefetch requests will be served from CF CDN and won’t reach your server.

    But if you are on a shared hosting with very low resources, you can turn off the features, if you see the features are increasing server load. But normally on a good hosting I haven’t noticed that.

    Thread Starter naratt

    (@naratt)

    Viewport, does it mean all links appeared on my screen at that moment ? For example, if i’m in product category page, it might be 30 product links on single screen ?
    And what if i scroll down the page, will all products i scroll pass be prefetched ?

    It would be more pratical for less power server to have this option enabled/disabled on desktop/mobile separately.

    PS. my server is VPS with 4 cpu cores, 8GB RAM.

    Plugin Contributor iSaumya

    (@isaumya)

    Viewport, does it mean all links appeared on my screen at that moment ? For example, if i’m in product category page, it might be 30 product links on single screen ?

    – Viewport mostly means all the proper links in the above the fold content.

    And what if i scroll down the page, will all products i scroll pass be prefetched ?

    – I am not 100% sure but I think they should.

    It would be more pratical for less power server to have this option enabled/disabled on desktop/mobile separately.
    PS. my server is VPS with 4 cpu cores, 8GB RAM.

    – A lot of my client sites are running on VPS and even shared servers not having any issues. It also depends on how many users you have. You can try disabling the viewport option and enabling the hover option to see if that works for you.

    Thread Starter naratt

    (@naratt)

    Do i need to manually flush CF cache after save setting ?

    Thread Starter naratt

    (@naratt)

    I turned it on and purge whole cache once, but doesn’t see any load on mouse hover.

    View post on imgur.com


    https://www.zoomcamera.net/

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘CPU usage for Auto prefetch URLs on mouse hover / in viewport’ is closed to new replies.