Micha <[EMAIL PROTECTED]> writes: > > > But look at this example, which was intendet to leave out kwiki edit > > > actions but still cache the sandbox, and FormattingRules: > > > # still cache > > > !http://kwiki.org/index.cgi?SandBox > > > !http://kwiki.org/index.cgi?action=edit&page_id=SandBox > > > !http://kwiki.org/index.cgi?action=edit&page_id=KwikiFormattingRules > > > # Don't cache: > > > http://kwiki.org/index.cgi?action=edit&* > > > http://kwiki.org/index.cgi?!action=edit&page_id=SandBox!POST:* > > > But would it work at all ? > > > No, this is not how it works. When a request comes in that URL is > > matched against all of the entries in the configuration file. For the > > first config file entry that matches it will not be cached unless the > > rule that was matched had a '!' at the beginning. > > ok. Just to make it sure: When an !URL entry is matched, the search for > matching entries is > finished like usual, right ?
Yes, there is no difference in the order that entries are processed depending on them having a '!' or not. The first matching entry is used in all cases. > > > The wwwoffle index shows > > > /index.cgi?KwikiFormattingRules > > > /index.cgi?action=edit&page_id=KwikiFormattingRules > > > /index.cgi?action=edit&page_id=SandBox > > > /index.cgi?!action=edit&page_id=SandBox!POST:BJdjCGSpGT6m1qQmYlto9g.40ffde34 > > > The last entry is a special internal WWWOFFLE URL. It corresponds to > > a form sent to the URL http://kwiki.org/index.cgi?SandBox using the > > POST method. If the URL is cached then the results of these forms > > will also be cached. > I am not sure if i understand. By URL you mean all index.cgi?Sandbox pages ? > Is there a way to avoid caching of edit (POST) actions, but preserve > all other (like main/index) pages ? Any URL that looks like http://kwiki.org/index.cgi?!action=edit&page_id=SandBox!POST:BJdjCGSpGT6m1qQmYlto9g.40ffde34 is a request for the page http://kwiki.org/index.cgi?action=edit&page_id=SandBox with a particular set of form parameters sent in the request using the POST method. Unlike the GET method of sending form parameters the URL does not change when using POST, so WWWOFFLE creates a fake URL so that the results can all be stored. All of these POST requests are for the same URL so they will use the same entries in the DontCache section of the configuration file. -- Andrew. ---------------------------------------------------------------------- Andrew M. Bishop [EMAIL PROTECTED] http://www.gedanken.demon.co.uk/ WWWOFFLE users page: http://www.gedanken.demon.co.uk/wwwoffle/version-2.8/user.html
