Re: [josm-dev] Does Caching WMS work?

2010-07-03 Thread M∡rtin Koppenhoefer
2010/7/2 Dirk Stöcker :
> On Fri, 2 Jul 2010, M∡rtin Koppenhoefer wrote:
>
>> I have the idea that caching actually doesn't work, at least my
>> cache-Folder is completely empty (but I have pictures on the screen
>> right now).
>> Can anyone confirm that it works? What is the meaning of the
>> caching-variable in prefs.?
>
> For me it works as expected. Probably you turned it off?


Maybe it requires a restart of JOSM after changes in the config are made?

> Which ones exactly? At least one allows to set the size of the cache (in
> bytes/numbers). Which OS?

OS: Ubuntu 10.04
Is there any documentation on the setting variables online?
(Cache-expire, is this seconds?) The numbers for size are in bytes? I
couldn't find it in the wiki.

cheers,
Martin

___
josm-dev mailing list
josm-dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/josm-dev


Re: [josm-dev] Does Caching WMS work?

2010-07-03 Thread Dirk Stöcker

On Sat, 3 Jul 2010, M∡rtin Koppenhoefer wrote:


Which ones exactly? At least one allows to set the size of the cache (in
bytes/numbers). Which OS?


OS: Ubuntu 10.04
Is there any documentation on the setting variables online?
(Cache-expire, is this seconds?) The numbers for size are in bytes? I
couldn't find it in the wiki.


Like all hidden values they usually are not documented.

Ciao
--
http://www.dstoecker.eu/ (PGP key available)___
josm-dev mailing list
josm-dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/josm-dev


Re: [josm-dev] Does Caching WMS work?

2010-07-03 Thread M∡rtin Koppenhoefer
2010/7/3 Dirk Stöcker :
> On Sat, 3 Jul 2010, M∡rtin Koppenhoefer wrote:
>
>>> Which ones exactly? At least one allows to set the size of the cache (in
>>> bytes/numbers). Which OS?
>>
>> OS: Ubuntu 10.04


I had no cache directory inserted and therefore thought to find it in
home/user/.josm/plugins/wms/cache (this was written as tooltip for the
standard)
but this directory (it existed) was empty.

>> Is there any documentation on the setting variables online?
>> (Cache-expire, is this seconds?) The numbers for size are in bytes? I
>> couldn't find it in the wiki.
>
> Like all hidden values they usually are not documented.


That's what I guessed. Maybe someone can explain this:
1. Am I right asuming that cache expiry is about time? If I put 0 or
-1 does it mean never expire? Or do I have to put something else? are
the numbers milliseconds, seconds or sth else?

2. is the number for size in bytes?

3. What happens if I change the zoomlevel? Will it delete the whole cache?

cheers,
Martin

___
josm-dev mailing list
josm-dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/josm-dev


Re: [josm-dev] Does Caching WMS work?

2010-07-03 Thread Bodo Meissner
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hello Martin,

I just looked at the source code of wmsplugin. (I did not write it, though.)

Am 03.07.2010 17:06, schrieb M∡rtin Koppenhoefer:

> 1. Am I right asuming that cache expiry is about time? 

Yes, the expiry is a time value.

> If I put 0 or
> -1 does it mean never expire? Or do I have to put something else? 

I'm not sure about 0 because the code is a bit inconsistent.
Every negative value is replaced internally with CacheFiles.EXPIRE_NEVER (= -1).

> are the numbers milliseconds, seconds or sth else?

The numbers are seconds, the default value is one day (60 * 60 * 24)
> 
> 2. is the number for size in bytes?

maxsize is in megabytes (100), default is 50.
Any negative value is replaced with -1 which seems to mean "unlimited"

> 
> 3. What happens if I change the zoomlevel? Will it delete the whole cache?

Don't know.


Bodo
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (GNU/Linux)

iEYEARECAAYFAkwvl/AACgkQnMz9fgzDSqfGAgCfU6iDljMXA42yDm9+A49Y9UAT
p44An32ws2bsna6CSfmK4hD3QJ39xx7x
=JBmV
-END PGP SIGNATURE-

___
josm-dev mailing list
josm-dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/josm-dev