Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
CentBrowser portable needs cachedir rel. path
#1
Hello,
I am using CentBrowser portable on different computers with a flash drive.  I would like to use the "Use custom cache directory" option to set cache dir. on the root of my flash drive - no matter what the drive letter.  I tried it on the O:\ drive and it made a separate Default folder with the folders Cache and Media Cache inside, which is fine.  When I changed computers, windows assigned a different drive and the cache no longer works.
I saw this:

v2.6.5.49 [2017-05-25]
. . Custom.css and cache location support relative path

Please help me to assign a relative path to "Use custom cache directory".  I tried  .\ and ..\ to point to root of the drive, but it won't allow it.

Thanks
Reply
#2
I've set the cache path from the options like this:
[Image: nr1rMLWg.jpg]
Reply
#3
There may be a bug in this.
You may try adding "--disk-cache-dir=XXX" in "Other settings"->"Startup command line", e.g.:

If your browser executables are in Q:\XXX\YYY\ZZZ\chrome.exe, then the command line should be
--disk-cache-dir="..\..\..\..\MyCache"

If your browser executables are in Q:\XXX\chrome.exe, then the command line should be
--disk-cache-dir="..\..\MyCache"
Reply
#4
Quote:patrickdrdI've set the cache path from the options like this:

[Image: nr1rMLWg.jpg]


Thanks for your reply patrickdrd, but that is not working for me because when I change computers (and I do that alot), Windows assigns me a different drive letter, and then "D:\Cache"  doesn't work anymore . . unless I go to Disk Management and change the drive letter.

I think that if the browser is labeled "portable", then it should truly be portable.
I forgot some other info: version 3.5.3.50
Most computers I use are windows 8.1

There probably is a way, I just think I don't know how.  Maybe this is not the right place to ask.
Maybe I'll try a shortcut --disk-cache-dir.

(04-01-2019, 04:22 PM)CentBrowser Wrote: There may be a bug in this.
You may try adding "--disk-cache-dir=XXX" in "Other settings"->"Startup command line", e.g.:

If your browser executables are in Q:\XXX\YYY\ZZZ\chrome.exe, then the command line should be
--disk-cache-dir="..\..\..\..\MyCache"

If your browser executables are in Q:\XXX\chrome.exe, then the command line should be
--disk-cache-dir="..\..\MyCache"


I just now saw your post, yes, thank-you I will try the --disk-cache-dir=.  Chromium is very demanding to run on a flash drive - no matter how fast it is - because sometimes I get several "failed writes" and corruption on some computers, mostly in the caches.  I don't think is a problem with Cent, but with the poor write cache hardware of USB drives.

Thanks for a great browser!!
Reply
#5
Here is an update of what I found that actually works for relative cache locations:
    The --disk-cache-dir= switch always creates  "Default\Cache" folders whether you want them or not.  So if you put the name Cache after --disk-cache-dir= you will have 3 folders - Cache\Default\Cache - which may not be very good.  Also, if you had a "Media Cache" folder in your User Data folder, it will add that to the new location.

    --disk-cache-dir=\   - will put "Default\Cache" at the root of the drive e.g. "Y:\Default\Cache" , and it will survive drive letter changes when your flash is in different computers.

    --disk-cache-dir=.  - with just a period, will put "Default\Cache" at the # directory of the CentBrowser folder e.g. "Y:\CentPortable\3.5.3.50\Default\Cache" , and it will survive drive letter changes when your flash is in different computers.

I couldn't get anything else to work --disk-cache-dir="..\..\MyCache"  would just make empty "MyCache\Default\Cache" folders and the cache would not work.
I tried adding "--disk-cache-dir="  to cb_config.ini, windows shortcuts, and the "other settings", and it didn't make any difference.
Reply
#6
(04-02-2019, 06:05 PM)Cent portable Wrote: Here is an update of what I found that actually works for relative cache locations:
    The --disk-cache-dir= switch always creates  "Default\Cache" folders whether you want them or not.  So if you put the name Cache after --disk-cache-dir= you will have 3 folders - Cache\Default\Cache - which may not be very good.  Also, if you had a "Media Cache" folder in your User Data folder, it will add that to the new location.

    --disk-cache-dir=\   - will put "Default\Cache" at the root of the drive e.g. "Y:\Default\Cache" , and it will survive drive letter changes when your flash is in different computers.

    --disk-cache-dir=.  - with just a period, will put "Default\Cache" at the # directory of the CentBrowser folder e.g. "Y:\CentPortable\3.5.3.50\Default\Cache" , and it will survive drive letter changes when your flash is in different computers.

I couldn't get anything else to work --disk-cache-dir="..\..\MyCache"  would just make empty "MyCache\Default\Cache" folders and the cache would not work.
I tried adding "--disk-cache-dir="  to cb_config.ini, windows shortcuts, and the "other settings", and it didn't make any difference.

Thanks for the information.
Reply


Forum Jump:


Users browsing this thread: 4 Guest(s)