Focal Point
[SOLVED] FOCCACHE Not Updating Randomly

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/7327097926

March 27, 2013, 05:39 PM
Joey Sandoval
[SOLVED] FOCCACHE Not Updating Randomly
Has anyone had any problems with a foccache table not updating after several, consecutive writes? Is it possible for it to timeout?

Background: On an html launch page, we have a summary report that outlines 28 different performance metrics. When a user clicks on the metric name (column 1), the report will load a summary graph of that particular metric into a frame located just to the right of the report, on the same html page.

We accomplished this by calling a procedure that passes a metric_id value to a foccache table whenever the metric name on column1 is clicked. After each time a metric name is clicked, the iframe and graph are reloaded, so that the graph may display the metric that was clicked based on the id written to the foccache table.

It works great when you click on a few metrics, but after a random number of clicks foccache will stop updating and the same graph will keep displaying , no matter which metric you select. If you wait a while, and resume clicking, the foccache table begins to accept updates again and the graph updates as normal.

This message has been edited. Last edited by: Joey Sandoval,




Prod/Dev: WebFOCUS 8.0.08 on Windows Server 2008/Tomcat , WebFOCUS DevStudio 8.0.08 on Windows 7 Pro


March 28, 2013, 04:41 AM
Wep5622
Is it really the foccache table that's not updating, or are you being fooled by the browser's cache?

If that's the case, the general solution is to add a query parameter to the URL so that it's different with each HTTP request, for example a time-stamp.


WebFOCUS 8.1.03, Windows 7-64/2008-64, IBM DB2/400, Oracle 11g & RDB, MS SQL-Server 2005, SAP, PostgreSQL 11, Output: HTML, PDF, Excel 2010
: Member of User Group Benelux :
March 28, 2013, 11:29 AM
Joey Sandoval
Wep,
Well I queried the foccache table after every click and I could see that the value was not updating. But perhaps you are right the browser cache is interfering with the update. I'm not sure how I can add a parameter to the URL though..




Prod/Dev: WebFOCUS 8.0.08 on Windows Server 2008/Tomcat , WebFOCUS DevStudio 8.0.08 on Windows 7 Pro


March 28, 2013, 01:28 PM
Alex
You can change the report expiration setting in the WebFOCUS Client Console.
1. Select Configuration --> General
2. Change Expire_Reports from 300 to [n]. (n = the number of seconds. 5, 10 orwhatever suits you.).
4. Click save


WF 7.7.04, WF 8.0.7, Win7, Win8, Linux, UNIX, Excel, PDF
April 01, 2013, 10:36 AM
Joey Sandoval
Thank you Alex, changing that setting to 1 seems to have fixed the issue.




Prod/Dev: WebFOCUS 8.0.08 on Windows Server 2008/Tomcat , WebFOCUS DevStudio 8.0.08 on Windows 7 Pro