(prefix, feedUrl)
| 66 | const globalCache = new Map() |
| 67 | |
| 68 | function getChangelogCacheKey(prefix, feedUrl) { |
| 69 | // Return a string that is only letters so it's safe to use this |
| 70 | // for the filename when caching to disk. |
| 71 | return `${prefix || ''}${feedUrl}`.replace(/[^a-z]+/gi, '') |
| 72 | } |
| 73 | |
| 74 | function getDiskCachePath(prefix, feedUrl) { |
| 75 | // When in local development or in tests, use disk caching |
no outgoing calls
no test coverage detected