Last modified: 2009-12-01 15:12:20 UTC
Inline queries do not update after a user submits a form if you have caching enabled. I received two suggestions to solve this. Either turn off caching or get users to manually trigger a purge by adding ?action=purge onto the URL and refreshing their browser. Neither of these are practical. Without caching performance drops significantly. Expecting users to manually muck about with URL's is not going to be accepted. A workaround I've found for this is to use the MagicNoCache extension. I then put __NOCACHE__ into my templates, so that when the form is submitted and it then displays the template the update seems to be triggered and subsequent inline queries show the updated data. However, this is not ideal as a large site is going to suffer from effectively disabling the cache for many pages. The MagicNoCache code looks quite simple. It makes one MW call. Could it not be incorporated into the SemanticForms Save page functionality? Would this work? It would be great if it did. Naturally, wiki's tend to be read much more often than written, so obviously it would be good if the cache loss penalty was taken at write time rather than every read. I posted this on the mailing list, but did not receive a reply. However, it is a fundamental issue (especially for larger sites) that won't go away by itself!
This is a duplicate of an existing feature request. I don't think that Semantic Forms are in charge of fixing this, but a separate request could be created for SF if considered apropriate. *** This bug has been marked as a duplicate of bug 9738 ***