roxen.lists.roxen.general

Subject Author Date
Re: first try module sometimes skipped Henrik Grubbström <30[at]community[dot]roxen[dot]com> 17-09-2007
>Dear Henrik,

Hi.

>Thanks for your advice.

No problem.

>I checked http-log with $cache-status logging on for this 10 hours or
>so.  And I see all requests skip my FIRST_TRY module have "protcache"
>mark.
>
>Most of protcache entries are static(image,css,js), but some are
>dynamic RXML output(even though not so many, html contain only
>javascript, rxml with extra pathinfo). Can I tell/configure roxen to
>not protcache these dynamic resources?

You can disable the protocol cache entirely by giving the option
--without-ram-cache to the start-script.

Another option is to use either of the macros NOCACHE() or
NO_PROTO_CACHE() in your module. This would only disable the cache
for the requests that pass through your module (ie all for the site).
This option has the feature that it would keep the protocol cache for
all other sites in the server.

Yet another option is to specify -DINITIAL_CACHEABLE=0 to the
start-script. This option sets the initial cache time to zero for all
requests, but doesn't alter any code paths (which --without-ram-cache
does).

There are also several rxml-tags that affect the cacheability in the
ram cache. Eg: <expire>, <nocache>, <random>, etc.

>  ITANI Eiichiro

Hope the above helps.