Wordpress LScache Plugin: LiteSpeed Cache and Directory Privacy
Last Updated on: Wed, 15 Apr 2026 00:00:02 Hi I enabled Directory Privacy in wp-admin folder of my site. After enable the LiteSpeed Cache plugin, for view the post and before loaded post view number requested Directory Privacy user and password. How to fix this? https://wordpress.org/plugins/litespeed-cache/ Hello ReziOnline, Just wanted to confirm on the issue you are having. After enabling Directory Privacy, you are asked for user and pass when trying to view posts? Are you logged in our out during this? If i am misunderstanding your question please let me know. Regards, -Michael Hello Before installing LiteSpeed Cache, Directory Privacy wanted username and password for login at wp-admin, but now asked for users of my site (for displays postview number). If logged in this problem not exists It is not easy to understand the desrcription of your problem. As far I understand, you have enable privacy (Basic Auth, I supporse) for wp-admin directory and the problem is that any user in the front end of your site is requested to authenticate (Basic Auth credentials, I suppose, not WordPress user credentials, correct me if I wrong). If what I understood is correct, I think you are loading resources from wp-admin in the frontend and that is the problem. For example, if post views (please explain what you mean with post views , I suppose they are post hits counting from some plugin) are loaded using WP Ajax API, then it requieres a call to wp-admin/admin-ajax.php. As you can see, it is a resoruce under wp-admin, which is protected by your implementation of Directory Privacy. In that case, It has nothing to do with LS Cache plugin. Try to exclude requests to admin-ajax.php from the privacy protection. Put these lines in the .htaccess file under wp-admin directory: Order allow,deny Allow from all Satisfy any I very very much apologize! Yes, this problem was for .htaccess Very thanks You dont need to apologize, everyone of us need help some times and everyone of us is wrong sometimes. Glad to help.
LiteCache Rush: Speed comes from using less, not from doing it faster
Reference