+1-888-365-2779
Try Now
More in this section

Forums / General Discussions / Flash SWF file caching.

Flash SWF file caching.

6 posts, 0 answered
  1. James@Nw
    James@Nw avatar
    265 posts
    Registered:
    05 May 2009
    21 Jun 2010
    Link to this post
    Hi Guys,

    We're having some troubles with SWF files caching in Sitefinity. This is the scenario and the problems we're having.

    1. Movie1.swf is a loader swf file used to load FlashNav1.swf content item.
    2. FlashNav1.swf is the main nav swf file which then pulls in another swf file called FlashBg1.swf
    3. FlashBg1.swf is the largest of the swf files with background images in it.

    To throw additional spanners in the spokes, the site is replicated across three servers.

    The swf files have now been renamed, our thinking being that if we did this, the files cannot be cached but we are not seeing the results that are meant to be showing and we would like to know if there is anything in Sitefinity that we can switch off to prevent any caching of swf files?

    Many thanks,
    James
  2. James@Nw
    James@Nw avatar
    265 posts
    Registered:
    05 May 2009
    23 Jun 2010
    Link to this post
    Is there a way to Flush the cache from Sitefinity's database maybe?
  3. Radoslav Georgiev
    Radoslav Georgiev avatar
    3370 posts
    Registered:
    01 Feb 2016
    23 Jun 2010
    Link to this post
    Hello James,

    Thank you for using our services.

    Could you please clarify where you have your flash files stored? Are they stored in Images & Documents module or you have them stored on the file system? Also could could you clarify how are you calling your swf objects, probably a code/markup sample? If the files are stored in Images & Documents could you please check the library settings if you have enabled caching for this library?

    Best wishes,
    Radoslav Georgiev
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  4. James@Nw
    James@Nw avatar
    265 posts
    Registered:
    05 May 2009
    23 Jun 2010
    Link to this post
    Hi Radoslav,

    The swf files are being stored in the root folder called images.

    The swf files are being loaded using swfObject, here's the code for that:

    <script type="text/javascript">
            var flashvars = {};
            var params = {};
            params.menu = "false";
            params.scale = "noscale";
            params.wmode = "opaque";
            var attributes = {};
            if(document.location.href.indexOf("sitefinity") == -1)
            {
                swfobject.embedSWF("/images/Movie2.swf", "flashMenu", "956",
                "244", "8.0.0", "expressInstall.swf", flashvars, params, attributes);
            }
    </script>

    Here's the link to the site in question. As you may be aware, the site is duplicated across three servers but I have found that this swf caching issue happens in DNN as well and I would like to know what causes this in CMS's so that I can resolve the issue.

    Thanks
  5. Radoslav Georgiev
    Radoslav Georgiev avatar
    3370 posts
    Registered:
    01 Feb 2016
    23 Jun 2010
    Link to this post
    Hi James,

    As we have mentioned in your support ticket - Sitefinity does not have handlers for caching swf files in particular. What the system would cache is the page's output Html. So if you have this as a user control added on the page Sitefinity's caching provider will cache the control's rendered html. That is only if you are using Sitefinity page caching. One clarification to your original question - we do not store the cached output in the database. It stored on the ASP.NET memory. If you use InDatabase cache dependency mode this means that only the information saying when cache expires is stored in db - not the actual cache. There would not be performance gains if you store cache on db.

    You can use CacheSubstitutionUserControl to prevent your control's output html to be cached. Also please note that IIS uses file caching and if the file size is 256 KB the IIS automatically caches them. More information can be found here: File Cache.

    Best wishes,
    Radoslav Georgiev
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  6. James@Nw
    James@Nw avatar
    265 posts
    Registered:
    05 May 2009
    23 Jun 2010
    Link to this post
    Hi Radoslav,

    Thanks for the prompt reply!

    I will discuss this with the guys and get back to you if there are any more issues.

    Cheers,
    James
Register for webinar
6 posts, 0 answered