How to clear the cache used by revBrowser?

Ben Rubinstein benr_mc at cogapp.com
Tue Oct 28 05:42:42 EDT 2008


Ken Ray wrote:
> Ben,
> 
>> In 10.5, there are mysteriously named folders, with mysteriously named folders
>> inside them, in "/var/folders".  Inside one of these is a folder named
>> "-Caches-"; and inside that, are folders named by app.
>> "com.runrev.revolution" has the cache for revBrowser running in the IDE; the
>> cache for your standalone will be in a folder named by the bundle identifier
>> (eg "com.mydomain.Myapp").
> 
> It's funny you bring this up, since I just figured this out tonight...
> 
>> Quite how you predict out the mysterious parts of the path between
>> /var/folders and -Caches- I'm not sure; but I guess you could scan them all if
>> you had to.
> 
> Ah! Here's how you do it:
> 
>   put specialFolderPath("utmp") & "/-Caches-" into tCacheFolder
> 
> After that, just add your bundle identifier! To clear the cache, simply
> delete the folder...
> 

Aha!  Thanks Ken,

- Ben




More information about the use-livecode mailing list