Hey Mikey,

Just installed the latest dev as we discussed in another issue, and I got it to work with boosted2.txt htaccess version, yet I noticed that the frontpage is not cached with either. So there is no cache file generated for root.

Cheers,
G

CommentFileSizeAuthor
#8 boost.module.patch434 bytesmikeytown2

Comments

mikeytown2’s picture

is there a _.html file in the root of your cache dir?

giorgio79’s picture

I just checked Mikey but nope. Even checked the gz folder, but there is no such file.

mikeytown2’s picture

ok so the php is not generating the _.html root file... I'll start to look around for a cause in the PHP. In the mean time can you check that under admin/settings/performance Cacheability settings that there is nothing in there that would prevent the front page from being cached? Default is "Cache every page except the listed pages". Also make sure your not logged in and accessing the front page like www.example.com, not www.example.com/frontpage

mikeytown2’s picture

Does your front page generate any kind of php error or use drupal_set_message()?

Way to check is by putting this code block on the front page somewhere

if ($error = error_get_last()){
  echo 'errors:' . $error['type'] . ' ';
}
echo 'messages:' . count(drupal_get_messages(NULL, FALSE)) . ' ';
echo 'boost_is_cacheable():' . boost_is_cacheable($GLOBALS['_boost_path']);

It should output messages:0 boost_is_cacheable():1 if its working correctly.

giorgio79’s picture

Thanks Mikey,

#4 all seem ok. Nothing seems to be preventing its creation.

Though previously the root was created as index.html not as _.html as you mention.

#5
output:
messages:1 boost_is_cacheable():

I investigated this and there was a missing pngfix file generating an error message, but I fixed it, and now there are no messages, but no luck.

mikeytown2’s picture

ok so it appears the problem is in boost_is_cacheable()
can you give me the output of this block

echo ' path:' . $GLOBALS['_boost_path'];
echo ' normal-path:' . drupal_get_normal_path($GLOBALS['_boost_path']);
giorgio79’s picture

Thanks Mikey, here it is

path: normal-path:

Both blank

mikeytown2’s picture

Status: Active » Needs review
StatusFileSize
new434 bytes

ok can you test this patch out? I can't reproduce the bug, but I'm fairly sure this will fix it.

giorgio79’s picture

Status: Needs review » Reviewed & tested by the community

Yep, thanks Mikey! That did it :)

mikeytown2’s picture

Status: Reviewed & tested by the community » Fixed

committed. Thanks for reporting and testing!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.