Topic: gallery.xml is cached


I have a problem that the gallery.xml is saved in a cache and is not updated.
I found this:

In order to prevent the gallery's XML file being cached, use the following line in your embedding code before the fo.write("flashcontent"); line:

fo.addVariable("xmlDataPath", "gallery.xml?nocache="+new Date().getTime());


flashvars.galleryURL = "gallery.xml?nocache="+new Date().getTime();

I have version 2.13. I don't know which one and where i have to insert one of the last 2 lines. I have a html file but this file has no content of fo.write("flashcontent");.
Could someone please help me.

regards blub

Re: gallery.xml is cached

With v2.1.3, you should use the second example. The first example is for versions prior to v2.1.0.
Your embedding code should look something like this:

<script type="text/javascript" src="svcore/js/simpleviewer.js"></script>
<script type="text/javascript">
    var flashvars = {};
    flashvars.galleryURL = "gallery.xml?nocache=" + new Date().getTime();
    simpleviewer.ready(function () {
        simpleviewer.load("sv-container", "100%", "100%", "222222", true, flashvars);
<div id="sv-container"></div>

If you have any trouble incorporating this into your own gallery, then please post the URL to your gallery's web page so that I can take a look at your gallery's current embedding code and help further.

Also, if you like, you could upgrade to the current version of SimpleViewer-Pro (v2.3.2) by following the instructions here.
Please see the Version History for a list of changes between versions.

Steven Speirs
SimpleViewer Support Team