danwent / Perspectives-Server

network notary implementation for the Perspectives project
http://perspectives-project.org
GNU General Public License v3.0
50 stars 13 forks source link

Expose cache duration as an argument #28

Closed daveschaefer closed 10 years ago

daveschaefer commented 10 years ago

Currently cache duration is controlled by the hard-coded value NotaryHTTPServer.CACHE_EXPIRY. To alter the defaut of 24 hours you have to edit the code. This is not ideal and we should expose the value so it can be passed as an argument on startup.

daveschaefer commented 10 years ago

The --cache-duration / --cache-expiry argument has been added in version 3.4. There are even docs in doc/advanced_notary_configuration.txt on how to use it!