Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 8b1fb6e

Browse files
author
Peter Bengtsson
authored
remove remnants of the disk-based redirects cache file (#31445)
1 parent 596a79b commit 8b1fb6e

4 files changed

Lines changed: 4 additions & 27 deletions

File tree

.gitignore

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,9 @@ coverage/
1919
blc_output.log
2020
blc_output_internal.log
2121
broken_links.md
22-
lib/redirects/.redirects-cache.json
2322
# This one is purely for historical reasons because so many people might
24-
# still have thes files on their disk.
25-
lib/redirects/.redirects-cache_*.json
23+
# still have these files on their disk.
24+
lib/redirects/.redirects-cache*.json
2625

2726
# During the preview deploy untrusted user code may be cloned into this directory
2827
# We ignore it from git to keep things deterministic

lib/redirects/static/redirect-exceptions.txt

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
1-
# Redirects are cached in 'lib/redirects/.redirects-cache.json'. If changes made here are not being reflected
2-
# on your local server, delete the cache file by running the following command, then restart your server.
3-
#
4-
# rm lib/redirects/.redirects-cache.json
5-
61
# These urls are exceptions to the versionless redirect fallbacks (described in lib/all-versions.js).
72
# See the comment in lib/redirects/precompile.js for an explanation of these exceptions.
83
# Originally shipped in pull #20947 on 10/15/21

script/move-content.js

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -155,18 +155,6 @@ async function main(opts, nameTuple) {
155155
)
156156
}
157157
}
158-
159-
const redirectsCachingFile = 'lib/redirects/.redirects-cache.json'
160-
if (fs.existsSync(redirectsCachingFile)) {
161-
fs.unlinkSync(redirectsCachingFile)
162-
if (verbose) {
163-
console.log(
164-
chalk.yellow(
165-
`Deleted the redirects caching file ${redirectsCachingFile} to stale cache in local server testing.`
166-
)
167-
)
168-
}
169-
}
170158
}
171159

172160
function validateFileInputs(oldPath, newPath, isFolder) {

tests/fixtures/versionless-redirects.txt

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
1-
# Redirects are cached in 'lib/redirects/.redirects-cache.json'. If changes made here are not being reflected
2-
# on your local server, delete the cache file by running the following command, then restart your server.
3-
#
4-
# rm lib/redirects/.redirects-cache.json
5-
61
# These urls went from being free-pro-team, but are now versioned for more than one enterprise version and enterprise-cloud
72
# Shipped in pull #20947 on 10/15/21
83

@@ -145,7 +140,7 @@
145140
- /github/setting-up-and-managing-your-enterprise/configuring-identity-and-access-management-for-your-enterprise-account
146141
- /admin/authentication/managing-identity-and-access-for-your-enterprise
147142

148-
# These URLs went from being in free-pro-team to ONLY to being in enterprise-cloud only.
143+
# These URLs went from being in free-pro-team to ONLY to being in enterprise-cloud only.
149144
# Shipped in pull #20947 on 10/15/21
150145

151146
/enterprise-cloud@latest/admin/identity-and-access-management/using-saml-for-enterprise-iam/managing-team-synchronization-for-organizations-in-your-enterprise
@@ -278,7 +273,7 @@
278273
# - lib/github/private_instance_bootstrapper/internal_support_contact.rb
279274
# - lib/github/private_instance_bootstrapper/saml_idp_configuration.rb
280275
# - lib/github/private_instance_bootstrapper/policies_configuration.rb
281-
# This redirect ensures that the links don't resolve to the non-GHAE version
276+
# This redirect ensures that the links don't resolve to the non-GHAE version
282277
# of the docs as this article only exists in the GHAE docs.
283278

284279
/github-ae@latest/admin/configuration/configuring-your-enterprise/initializing-github-ae

0 commit comments

Comments
 (0)