@@ -38,6 +38,7 @@ pub struct Config {
3838 // Time between 'git gc --auto' calls in seconds
3939 pub ( crate ) registry_gc_interval : u64 ,
4040
41+ <<<<<<< HEAD
4142 // random crate search generates a number of random IDs to
4243 // efficiently find a random crate with > 100 GH stars.
4344 // The amount depends on the ratio of crates with >100 stars
@@ -46,6 +47,10 @@ pub struct Config {
4647 // `500` for a ratio of 7249 over 54k crates.
4748 // For unit-tests the number has to be higher.
4849 pub( crate ) random_crate_search_view_size : u32 ,
50+ =======
51+ // CDN / caching settings
52+ pub ( crate ) cache_rustdoc_redirects: u32,
53+ >>>>>>> 53 d35de ( Set CDN caching headers for rustdoc redirects)
4954
5055 // Build params
5156 pub( crate ) build_attempts : u16 ,
@@ -94,6 +99,7 @@ impl Config {
9499 registry_gc_interval : env( "DOCSRS_REGISTRY_GC_INTERVAL" , 60 * 60 ) ?,
95100
96101 random_crate_search_view_size : env( "DOCSRS_RANDOM_CRATE_SEARCH_VIEW_SIZE" , 500 ) ?,
102+ cache_rustdoc_redirects : env( "DOCSRS_CACHE_RUSTDOC_REDIRECTS" , 30 * 60 ) ?,
97103
98104 rustwide_workspace : env( "CRATESFYI_RUSTWIDE_WORKSPACE" , PathBuf :: from( ".workspace" ) ) ?,
99105 inside_docker : env( "DOCS_RS_DOCKER" , false ) ?,
0 commit comments