Hi,
I'm adding a couple of optimizations to my site, such as
static_source(shame on me for not doing this sooner) and preloads for my
index.html(mason generated) page. It seems that the static_source
parameter works as described on masonhq.com, but I keep getting the
following error when I run apachectl configtest:
# apachectl configtest
Didn't find any components for preload pattern
'/var/www/site1/index.html'
at /usr/local/share/perl/5.8.7/HTML/Mason/Interp.pm line 261.
Syntax OK
That's the absolute path to the file. The following is a snippet of my
session_handler.pl:
<snip>
my %ah;
foreach my $site (qw(site1 site2)) {
$ah{$site} =
new HTML::Mason::ApacheHandler
( request_class => 'MasonX::Request::WithApacheSession',
args_method => 'mod_perl',
session_class => 'Apache::Session::MySQL',
session_data_source => 'dbi:mysql:dbase',
session_user_name => 'user',
session_password => 'secret',
session_lock_data_source => 'dbi:mysql:dbase',
session_lock_user_name => 'user',
session_lock_password => 'secret',
session_args_param => 'session_id',
session_use_cookie => 1,
session_cookie_name => "$site",
comp_root => "/var/www/$site",
preloads => ["/var/www/$site/index.html"],
static_source => 'true',
static_source_touch_file => "/var/www/$site/lib/touched.mas",
data_dir => "/var/$site" ); }
</snip>
I want my index.html page to load as fast as possible, am I going in the
right direction with this?
Justin
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Mason-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mason-users