• My page is very slow at loading images when enabling “Lock files”

    When function is enabled TTFB is from 6 to 22 sek.
    When function is disabled TTBF is 0.2 to 0.9 sek.

    – I have tried normal and fopen open mode. My host will not implement xsendfile on the server.
    – I have tried disabling all other plugins.

    Wordpress: 5.3.2
    UAM: 2.1.12
    PHP: 7.2

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi,

    I have the same issue and I’ve been trying to analyse the reason for my slow site for quite a while.
    I’ve ocassionally found your question. Thanks for posting this!
    Did you solve the problem?

    Greetings

    Thread Starter dafnie

    (@dafnie)

    Hi torophal

    Yes i have solved the problem with slow TTFB on protected files.

    But i have disabled the “Lock files” feature i UAM.
    I have read in other forums that the approach used in UAM to protect files is very memoryheavy if there is a lot of images on the page.
    On every filerequest the server have to call wordpress to see if the file is allowed to be loaded.

    Instead I have moved the protected file to a seperate folder on the server and use an other plugin to do the job.

    1. Move files from /uploads to /uploads/members.

    2. Install the plugin prevent-file-access

    3. Enable protection and protect the members folder.

    My TTFB on images is now the same as without file-protection.

    The prevent-file-access plugin generate a simple setting in the .htaccess file and if you know a little programing it is not that hard to customize the .htaccess, if you have special needs.

    Happy coding.. ??

    Let me hear if it worked for you as well.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘TTFB on files very slow’ is closed to new replies.