Problems with propogating uiConf changes to all servers?

5 replies [Last post]
Joined: 11/05/2009
Points: 26

Last night and in the last 5 minutes, I've noticed that at times when I upload a uiConf (using a CLI script using the PHP API), the change doesn't always reflect in my player. If I reload a bunch of times, I get varying results, with various changes in my uiConf showing. It would seem to me that the reloading is hitting multiple servers that each have different versions of my uiConf.

I'm sure this isn't supposed to happen. Are there technical issues going on?

Joined: 01/05/2009
Points: 1697

Are you using the "Best practices PHP integration - KDP Sample Kit" from the KDP guides page?

There's a configuration on the top of the page that turns off the caching:

        //FOR REMOTE SERVER WIDGET: SET TO TRUE TO DISABLE BROWSER CACHING
        define("DISABLE_BROWSER_CACHING", true);
        //FOR REMOTE SERVER WIDGET: SET TO TRUE TO DISABLE KALTURA SERVER WIDGET CACHING
        define("DISABLE_SERVER_CACHING", true);

So just make sure both constants are set to true, and that will turn off caching for the time you are testing.
When you finish testing, just use the latest url generated on the object src attribute.

Joined: 11/05/2009
Points: 26

I hadn't noticed that before. I had a suspicion it was caching, but never thought to try it. :-) Thanks.

Joined: 11/05/2009
Points: 26

Problem can still persist when referencing modules? Can't inject a random num directly via the uiConf, so they tend to cache still.

Joined: 11/05/2009
Points: 26

Running Safari in cache-disabled mode works nicely for development. But, I worry about pushing updates to the server. Why on Earth is mod date not checked for modules in Flex? Hmmmmm,

Joined: 11/05/2009
Points: 26

How about the idea that an attribute is added to the tag, perhaps cached=yes, which causes the SWF name to be appended with a random number much like caching is avoided now?

For right now, the only solution will have to be updating such a query string when the cache needs to be cleared. E.g.,