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 » Mon Jul 13, 2015 3:29 pm

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 » Mon Jul 13, 2015 4:16 pm

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 » Mon Jul 13, 2015 4:32 pm

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 » Mon Jul 13, 2015 4:47 pm

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 » Mon Jul 13, 2015 5:17 pm

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 » Tue Jul 14, 2015 8:31 am

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 » Tue Jul 14, 2015 12:11 pm

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

Post Reply