Skip to content
This repository has been archived by the owner on Jan 17, 2022. It is now read-only.

Page with table does not refresh when other pages with <data> blocks are updated. #3

Closed
gdavidp opened this issue May 2, 2014 · 3 comments

Comments

@gdavidp
Copy link

gdavidp commented May 2, 2014

So I am struggling a bit with syntax of Strata so I haven't messed up.

As a test, I have three or four DokuWiki pages with blocks similar to:

[data customer]
Name: Bloke
Product: pdm
Enterprise: yes
CUCM: no
Lync: no
ShoreTel: no
Avaya: no
Genesis: no
[/data]

Then I have a separate page, call it "results" for clarity:

[table ?c "Customer" ?p "Product" ?m "CUCM"]
?c is a: customer
?p = egw
?c Product: ?p
?c CUCM: ?m
[/table]

When I modify any of the wiki pages containing the "data" customer blocks, and then subsequently go to the "results" page, the data does not automatically refresh. I have to actually edit the "results" page, make a change, and save it for the table to take any changes into effect in the "data" customer blocks.

Is this a bug or normal behaviour?

Thanks.

@bwanders
Copy link
Owner

bwanders commented May 2, 2014

Hi, at the moment that is the intended behaviour. Strata lets DokuWiki cache the results of queries, so pages can be presented to the user faster.

You can place the default dokuwiki no-cache syntax on the page to force the page to be refreshed every time it is visited:

~~NOCACHE~~

Alternatively, for a single update you could also edit the page, which forces a refresh as well.

Hope this helps!

Aside: Implementing fully propagated cache refreshing isn't trivial, as it would need to take into account all page from which data was used to answer your query. I'll think about how to handle a simpler form of caching, as this is indeed a problem.

@gdavidp
Copy link
Author

gdavidp commented May 2, 2014

Thanks, that works for me, maybe mentioning this on your Wiki page for the plug-in would help if not already done so.

Cheers.

@bwanders
Copy link
Owner

bwanders commented May 2, 2014

Glad to help, I'll do that immediately!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants