As you may know, most cpanel based hosting have problems displaying a directory called '0', avoiding any work on those files (is a bit silly, as they are considered the null file :-)).
As this great module is really very, very helpful to take cpu under control when using a shared hosting, (which will likely use cpanel) I propose to modify that annoying '0', and as it is the uid of anonymous users, just add a prefix letter to keep that information in the path.
I have modified the function boost_cache_directory to pass a directory called 'a0' instead. Just substituting this
return implode('/', array(getcwd(), BOOST_FILE_PATH, $host, $user_id));
with this
return implode('/', array(getcwd(), BOOST_FILE_PATH, $host, 'a' . $user_id));
works fine (of course, .htaccess must be modified to reflect this change). This solution is quite easy and non-intrusive, and completely solves this silly roblem
Comments
Comment #1
Arto commentedYou'll be glad to know that the 6.x version of Boost has altogether removed the user ID from the created cache directory name.
However, as this is a potentially disruptive change that will simply add support overhead, I don't intend to change this behavior in the 5.x version unless there is more of a general clamor for it. Anyone needing a fix for CPanel can apply this manually for the time being.