MasonHQ node caching, and other bugs
Soren Dossing <[email protected]>
| Newsgroups | gmane.comp.web.mason.devel |
|---|---|
| Message-ID | <20050316134848.X46357@localhost> |
This posting is related to usage of MasonHQ. My appologies if this is the
wrong forum.
I'm building a Wiki web site based upon the MasonHQ code. Besides being a
little slow, it works pretty well. But I found a few bugs; one particular
is causing much grief.
1) Content caching.
When editing a page, especially when editing a page that has just been
updated, I often find myself editing old content. The edit.html loads old
content into the form. A few reloads will cycle between various revisions
of the page. The page is not cached by a proxy server. Tracking through
the code, I end up on lib/MHQ/Wiki/Node.pm in the latest_version()
subroutine. This piece of code does not return the latest version, but
instead whatever is cached in ... in apache I guess.
sub latest_version
{
my ($self) = @_;
unless (defined($self->{_latest_version})) {
($self->{_latest_version}) =
$self->versions(version_id=>$self->latest_version_id);
}
return $self->{_latest_version};
}
Changing the code to
sub latest_version
{
my ($self) = @_;
($self->{_latest_version}) =
$self->versions(version_id=>$self->latest_version_id);
return $self->{_latest_version};
}
does not help. Still old version numbers are produced here. From here I'm
stuck. I can not figure out where to look next.
The remaining problems are not so bad:
2) Slowness, internal server error.
Starting up apache takes a lot of time. And new instances have to be
spawned often, so the site is generally pretty slow. Keeping
MaxRequestsPerChild 10
in conf/httpd-prod.conf.src generally works, but is slow. Increasing the
number results in frequent internal server errors.
3) Links to local files.
The might be a restriction in Kwiki more than MasonHQ. But there seem to
be no syntax for linking to local files. Links of this syntax are normally
working as expected:
http://this.site/cgi-bin/legacy.cgi
But writing
/cgi-bin/legacy.cgi
or even
[Legacy Data /cgi-bin/legacy.cgi]
does not create a link. Creating links to files in windows file servers
are popular, but this style links does not work either.
\\fileserver\share\orgchart.xls
I guess I can create new rules in lib/MHQ/CGI/Kwiki/Formatter.pm for this
purpose?
4) Bugs and documentation
I have fixed a few other bugs in the code, as well as kept an installation
journal that is more accurate than the one provided. Is there somewhere to
send patches and docs updates?
Thanks,
Soren
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click