Solution : Cache error with filtered list and back button

lmhwee

New Member
If anyone facing this problem:
If a list is filtered the "Back" button in form and details (or browser back) is throwing a cache error

Similar problem here:
http://fabrikar.com/forums/index.php?threads/cache-error-with-filtered-list-and-back-button.38109/
http://fabrikar.com/forums/index.php?threads/cache-error-on-filtered-list.38730/

My solution:

On list template, default.php add these code
if(isset($_SESSION['reloadPage'])) {
unset($_SESSION['reloadPage']);
header("Refresh:0");
}

On detail template, default.php add these code
$_SESSION['reloadPage'] = 1;
 
Shouldn't make make difference, as it's adding a header to be sent when the page is actually sent back to the browser, which doesn't happen till all processing is done.

Note that while this solution will work for a lot of cases, it will have unpredictable results in some cases. And no, I can't give you a breakdown of those cases. One of the reasons we've never found a satisfactory solution to "back" is it's a very complex issue.

-- hugh
 
Unfortunately it doesn't work for me.
The cache error problem is very annoying in my apps.. :(
 
We are in need of some funding.
More details.

Thank you.

Members online

No members online now.
Back
Top