The "?action=purge" workaround works by uncaching the page, right?

I could not see a page refresh have any influence on the caching of pages. Is 
there any possibility to prevent a wiki page from caching at all? So that pages 
containing queries would always return up-to-date data.


-----Ursprüngliche Nachricht-----
Von: Markus Nitsche [mailto:[EMAIL PROTECTED] 
Gesendet: Freitag, 27. April 2007 13:58
An: 'Yaron Koren'; AUDI IN AEV Ausbilduser 13 (I/AEV)
Cc: semediawiki-user@lists.sourceforge.net
Betreff: AW: [Semediawiki-user] Ask query updates


As far as I know this answer is not correct (I just checked it again
with Mediawiki 1.10 and SMW 0.6). Up to now, ask-queries are only
executed once (this is when you save the page) and the results are then
saved and not refreshed anymore!
If you change anything that is contained in the query, a refresh or
reload of the page will NOT show these changes. Only if you edit and
save the page.
However there is a workaround:
You can either add a "?action=purge" in the adress bar after the article
name, so

http://myhost/mediawiki/index.php/Foobar

becmoes 

http://myhost/mediawiki/index.php/Foobar?action=purge


or you edit the page and enter an "external" backlink to the same page
with that parameter, for example:

[http://myhost/mediawiki/index.php/Foobar?action=purge Klick to refresh]

You can then click on this link to refresh the page and update the query
results.

Kind regards,

Markus


-----Ursprüngliche Nachricht-----
Von: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Im Auftrag von
Yaron Koren
Gesendet: Freitag, 27. April 2007 13:35
An: AUDI IN AEV Ausbilduser 13 (I/AEV)
Cc: semediawiki-user@lists.sourceforge.net
Betreff: Re: [Semediawiki-user] Ask query updates

You don't need to edit and save; hitting the "Refresh" tab will
accomplish the same thing. The issue is that the ask query isn't going
to the database, it's getting the cached version of the query.

-Yaron

On 4/27/07, AUDI IN AEV Ausbilduser 13 (I/AEV)
<[EMAIL PROTECTED]> wrote:
> I have observed that an ask-query only gets updated once the page
> containing the inline-query gets edited and saved again. Lets say I
have
> a query for all instances in category actors
>
> <ask>[[Category:actors]] [[age:=*]] [[lives in::*]]</ask>
>
> When I add a new actor page to this category the result of the query
> does not contain this new instance unless I edit and save the page.
>
> Is this the normal behavior? Is there a workaround? What's the point
in
> having dynamic querys if they are not really dynamic??
>
> Cheers,
>
> Nils
>
>
------------------------------------------------------------------------
-
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> _______________________________________________
> Semediawiki-user mailing list
> Semediawiki-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/semediawiki-user
>

------------------------------------------------------------------------
-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Semediawiki-user mailing list
Semediawiki-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/semediawiki-user


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Semediawiki-user mailing list
Semediawiki-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/semediawiki-user

Reply via email to