Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi Mikey,
Just installed the latest Dev version dated 27th September 2009.
Noticed that Boost is creating only the first directory within the cache directory and not the full path.
For example: My path is content/2009/09/27/raw-title
Boost is creating only the content directory within the cache directory.
I do not know if this is specific to my server situation and would be nice to find a solution to make Boost create the entire path with all the required subdirectories.
Thanks for all your time!
Comment | File | Size | Author |
---|---|---|---|
#18 | boost-590134.patch | 6.08 KB | mikeytown2 |
Comments
Comment #1
mikeytown2 CreditAttribution: mikeytown2 commentedDid Boost use to work with your path structure?
Comment #2
Froggie-2 CreditAttribution: Froggie-2 commentedMikey, thanks for your quick response. Previously (for earlier Dev versions), I had to manually create the folder and permissions according to my path structure, so that boost is able to cache (store) the pages in their respective directories.
Comment #3
mikeytown2 CreditAttribution: mikeytown2 commentedyou probably need to set the chmod settings
admin/settings/performance/boost
Boost advanced settings
Directories: Enter in a 4 digit number (octal) that will be used by chmod(). Example 0775:
Comment #4
Froggie-2 CreditAttribution: Froggie-2 commentedThanks Mikey! I have done that already during set up where I set (octal) CHMOD() for files as 0664 and for Directories as 0775.
I have also tried by setting CHMOD for files 0777 and Directories (0777) but that did not make any difference.
Only the first directory gets created and not the full path (sub directories).
Comment #5
mikeytown2 CreditAttribution: mikeytown2 commentedTo give all permissions
Files should be 0666
Directories should be 0777
That probably doesn't fix your problem though. Can I get a real URL? Use my contact form if needed.
Comment #6
Froggie-2 CreditAttribution: Froggie-2 commentedThanks Mikey,
I have already manually created the folders (600000 +) and have uploaded them. Boost has started to cache and store the pages since yesterday but what bothers me is why this is happening. I am not too sure whether this is a situation specific to my server (VDS at GoDaddy) or this is happening with others as well who have a large amount of subdirectories in their path structure. Recently, I installed pathauto module and modified the urls of about a million nodes to avoid the apache restriction of 32k directories/files within a folder.
I shall soon email my site url to you using your contact form. I warn you though that the site is very slow at the moment as I have just started to cache the pages via Boost. Only pages cached by Boost thus far loads faster, in less than 5 seconds generally. Un-cached pages take about 20 seconds or more to get loaded due to a large amount of queries of similar nodes associated with each node/view.
Thanks again
Best Regards
Comment #7
mikeytown2 CreditAttribution: mikeytown2 commentedDude, you weren't kidding, just shy of 5 minutes for a URL to get generated. Sounds like a MySQL problem. There is a subdir limit for boost, it's set at 10
define('BOOST_MAX_PATH_DEPTH', 10);
, but yours is only 6. Once cached though, your site only takes 400ms to send the page!System limits per directory is 32k subdirectories and about 200k files.
Here's the code in question most likely
Did you have any error show up in your watchdog that would match this format
Or any other related errors?
Comment #8
Froggie-2 CreditAttribution: Froggie-2 commentedThanks for visiting my site!. So far I have not seen any error or errors related to this.
A small question though, relating to system limits as stated in #7.
"System limits per directory is 32k subdirectories and about 200k files."
Question: Does it include sub sub directories? To be specific does it mean that the cache directory can hold max 32K directories, including all sub directories and all sub sub directories Or is it the case that each directory and each sub directory can each hold 32K sub directories?
Thanks again!
Comment #9
mikeytown2 CreditAttribution: mikeytown2 commentedDoes this help?
Comment #10
Froggie-2 CreditAttribution: Froggie-2 commentedYep, thanks very much!
Comment #11
mikeytown2 CreditAttribution: mikeytown2 commentedComment #12
mikeytown2 CreditAttribution: mikeytown2 commentedI think this is specific to your hosting situation.
Comment #13
Froggie-2 CreditAttribution: Froggie-2 commentedYou are right. I shall soon have to move to a dedicated server with appropriate settings. Thanks
Comment #14
mikeytown2 CreditAttribution: mikeytown2 commentedmarking this postponed, no idea how to solve this ATM
Comment #15
Froggie-2 CreditAttribution: Froggie-2 commentedHi Mikey,
I just found out by chance that disabling PHP Safe Mode on the server enables Boost to create the full path of directories and subdirectories and save the files in the appropriate directories. This means with PHP Safe Mode switched on the functionalities of Boost gets impaired on some servers. I thought I should bring this to your notice.
I am closing this issue as disabling PHP Safe Mode solved my case.
Thanks!
Comment #16
mikeytown2 CreditAttribution: mikeytown2 commentedThanks for the report, I will add a warning to the status page in regards to this issue.
Comment #17
mikeytown2 CreditAttribution: mikeytown2 commentedComment #18
mikeytown2 CreditAttribution: mikeytown2 commentedComment #19
mikeytown2 CreditAttribution: mikeytown2 commentedcommitted