RevBrowser: clearing its cache?

Ken Ray kray at sonsothunder.com
Sun Nov 20 01:07:12 EST 2011


On Nov 19, 2011, at 8:05 PM, Tereza Snyder wrote:

> Yeah, I thought for sure there’s be some kind of cache-disabling call but I haven’t discovered it. Since I’m building the pages with LC, previewing them in RevBrowser was a no-brainer--but not worth the agony of seeing a bug persist through one dreary iteration after another until finally the coin drops and you realize you fixed it on the first try, but you’ve just been looking at the same buggy over and over.

The only way I've found to fix it is to delete the actual cache file on the hard drive - I only know of how to do it on Macs:

If you look in the folder for specialFolderPath("pref") there's a folder called "Caches". Also in specialFolderPath("utmp") there may be a folder called "-Caches-". In both places look for a folder that's like "com.runrev.livecode" or "com.runrev.revolution", and if you delete *that* you get a refreshed page the next time the revBrowser needs to display it.

I've also been told that if you make sure your URL is unique by passing a dummy parameter to the page, you should get a clean refresh because the URL is not cached.

Just my 2 cents,


Ken Ray
Sons of Thunder Software, Inc.

> 
> sigh.
> 
> On Nov 19, 2011, at 7:39 PM, stephen barncard wrote:
> 
>> That's a good question.  'Regular' Safari has a 'developer' mode and allows
>> "Disable Caches" which allows 'immediate refresh'.   I use this setting all
>> the time while developing online files.
>> 
>> Certainly there's a call in the toolbox for that.
>> 
>> sqb
>> 
>> On 19 November 2011 17:03, Tereza Snyder <tereza at califex.com> wrote:
>> 
>>> I’m using revBrowser to preview local html files that I’m developing for a
>>> website. I’m finding that unless I quit LC and start it back up, the
>>> revBrowser often doesn’t see my changes, especially of javascript files—as
>>> if it’s keeping a cache for those files. To be clear, I close all
>>> instances, close the stack, reopen the stack, and create a new instance
>>> between attempts to preview pages. The stack has its destroywindow set to
>>> true, but it is a substack of another stack I can’t close and reopen.
>>> 
>>> I've tried using revBrowserRefresh after loading a new page, and that
>>> works sometimes, but not every time.
>>> 
>>> Does anyone have a sure-fire way to force a revBrowser instance to reload
>>> all page components?
>>> 
>>> tereza
>>> 
>>> 
>>> --
>>> Tereza Snyder
>>> Califex Software, Inc.
>>> <www.califexsoftware.com>
>>> 
>>> 
>>> 
>>> 
>>> _______________________________________________
>>> use-livecode mailing list
>>> use-livecode at lists.runrev.com
>>> Please visit this url to subscribe, unsubscribe and manage your
>>> subscription preferences:
>>> http://lists.runrev.com/mailman/listinfo/use-livecode
>>> 
>> 
>> 
>> 
>> -- 
>> 
>> 
>> 
>> Stephen Barncard
>> San Francisco Ca. USA
>> 
>> more about sqb  <http://www.google.com/profiles/sbarncar>
>> _______________________________________________
>> use-livecode mailing list
>> use-livecode at lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
> 
> 
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode






More information about the use-livecode mailing list