static size_t cached_directory_z_len = 0;
static time_t cached_directory_published = 0;
+/** DOCDOC */
void dirserv_set_cached_directory(const char *directory, time_t when)
{
time_t now;
smartlist_free(tokens);
tokens = NULL;
- /* Now that we know the signature is okay, cache the directory. */
- /* XXXX009 extract published time if possible. */
- dirserv_set_cached_directory(str, time(NULL));
+ if(!get_options()->AuthoritativeDir) {
+ /* Now that we know the signature is okay, cache the directory. */
+ /* XXXX009 extract published time if possible. */
+ dirserv_set_cached_directory(str, time(NULL));
+ }
/* Now that we know the signature is okay, check the version. */
if (check_version)