Michael Wechner wrote:
Jörn Nettingsmeier wrote:
hi everyone!
from pubs/default/sitemap.xmap:
<map:select type="resource-exists">
<!-- Read from cache -->
<!-- If configured within Apache then mod_lenya will nevertheless
read from cache -->
<map:when
test="context:/lenya/pubs/{page-envelope:publication-id}/{global:cache-dir}/{../../1}/{../../2}.htmlDISABLED">
<map:read
src="context:/lenya/pubs/{page-envelope:publication-id}/{global:cache-dir}/{../../1}/{../../2}.html"
mime-type="text-html"
/>
</map:when>
gives rise to a number of questions:
a) what is mod_lenya?
have you read the README?
http://svn.apache.org/repos/asf/lenya/sandbox/mod_lenya/README.txt
especially section 3, but I guess a dedicated "About" section would help
yeah, thanks, thorsten pointed that out. i think i'll add some comments
to the sitemap...
b) why do we code our own caching mechanism rather than relying on
ehcache?
static "export" is the most stable and most simple reusable cache that I
know ;-)
:)
c) why is this lenya-specific caching mechanism disabled?
because it requires invalidating the cache and IIRC correctly the
coupling to
the publishing process has not been finished, but people rather coupled it
to some shell scripts when syncing with some other servers, but I might
be wrong
on this
i see. well, i see the point now, but at the same time, i don't like to
have dead or untested code in something as exposed as the default
sitemap (all lenya newbies will have to read and understand that one,
and the simpler it is, the better).
depending on the answers to a) through c), there's question
d) can we just chuck this out?
with the current performance issues I would rather leave it as a very
reliable alternative.
hmm. i would agree in general, but i haven't had any problems with live
site performance. anyone? mod_cache should be able to deal with that.
and i don't see how this could have the potential to speed up the
authoring interface, which is what most people are complaining about iiuc.
for now, i would like to comment out all cache-related stuff in the
sitemap (not just doctor the match pattern) and add all the information
people have provided in this thread as comments. wdyt?
--
Jörn Nettingsmeier
Kurt is up in heaven now.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]