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.