Skip to content

Add _removeCache, expose EXPIRE/TTL to process.env, reduce exiration from 1d to 1h#65

Merged
trhinehart-godaddy merged 5 commits intomainfrom
removeCache
Mar 5, 2025
Merged

Add _removeCache, expose EXPIRE/TTL to process.env, reduce exiration from 1d to 1h#65
trhinehart-godaddy merged 5 commits intomainfrom
removeCache

Conversation

@trhinehart-godaddy
Copy link
Contributor

Summary

  • Update npm dependencies based on current semver
  • Expose default internal server ttl/expiration for per app customization
  • Try to drop caches when errors occur to solve production error; unable to replicate in unit tests still.

Changelog

Core

  • Add _removeCache to remove cache instances
  • _setCache will now _removeCache on error

Server

  • _fetchExport will now _removeCache on error
  • Expose process.env.RADPACK_EXPIRE to set default expiration
    • Changed default expiration from 1d to 1h
  • Expose process.env.RADPACK_TTS to set default TTL
  • Expose process.env.RADPACK_RETRIES to set default retry count

Test Plan

  • All tests pass

 - @radpack/build@1.0.6
 - @radpack/cli@1.0.8
 - @radpack/client@1.0.6
 - @radpack/core@1.0.6
 - @radpack/rollup-plugin@1.0.6
 - @radpack/server@1.1.4
 - @radpack/webpack-plugin@1.1.3
@trhinehart-godaddy trhinehart-godaddy merged commit 3ab4fa2 into main Mar 5, 2025
1 check passed
@trhinehart-godaddy trhinehart-godaddy deleted the removeCache branch March 5, 2025 00:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants