CEF Browser Cache?

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
giodev
Posts: 10
Joined: Fri May 01, 2015 8:35 am

CEF Browser Cache?

Post by giodev »

Hey guys,

I'm looking for either the functionality to clear the cache of a revBrowserOpenCef created browser instance, or the location of the cache folder to delete it myself on Windows.

Obviously I've googled already, and the posts I've seen suggest there isn't the functionality to do this yet, and all of the locations suggested are OSX relevant unfortunately.

Context: localhost site is caching a Javascript file that I have since updated (and will need to continue updating in the near future), and unfortunately due to the URL rewriting rules of our setup I can't just add a time based query string to the end of the script location... which is annoying in itself.

Thoughts or suggestions would be greatly appreciated.
zaxos
Posts: 222
Joined: Thu May 23, 2013 11:15 pm

Re: CEF Browser Cache?

Post by zaxos »

Have you checked cachedURLs? You can unload cached URLs if thats the case.
Knowledge is meant to be shared.
giodev
Posts: 10
Joined: Fri May 01, 2015 8:35 am

Re: CEF Browser Cache?

Post by giodev »

Hey Zaxos thanks for the reply :D

I'm pretty sure that cachedURLs only applies to the files loaded by using the load keyword, open browser instances look after their own cache :/
zaxos
Posts: 222
Joined: Thu May 23, 2013 11:15 pm

Re: CEF Browser Cache?

Post by zaxos »

I see, since revOpenBrowserCef is using Chromium and Chromium is saving cached sites at "C:\Users\%USERNAME%\AppData\Local\" have you checked if something usefull is there?
Knowledge is meant to be shared.
zaxos
Posts: 222
Joined: Thu May 23, 2013 11:15 pm

Re: CEF Browser Cache?

Post by zaxos »

Using proc mon i found out that livecode including browserCef saves data at "C:\Users\%USERNAME%\AppData\Local\Temp\scoped_dir728_9675", my guess is that this dir has a different name on your machine but "scoped_dir" suffix is the same, you could do a check in the temp dir ans delete all "scoped_dir" directories...
Knowledge is meant to be shared.
giodev
Posts: 10
Joined: Fri May 01, 2015 8:35 am

Re: CEF Browser Cache?

Post by giodev »

Zaxos, that's great! The Temp Folder for me contains about a dozen "scoped_dir" folders for me, so I guess that's from each of the different processes I've started during my development. Great job ;)
zaxos
Posts: 222
Joined: Thu May 23, 2013 11:15 pm

Re: CEF Browser Cache?

Post by zaxos »

Glad i helped :D
Knowledge is meant to be shared.
Post Reply