Skip to content

Commit

Permalink
increase asset cache time on production mode to reduce server load
Browse files Browse the repository at this point in the history
  • Loading branch information
xjlin0 committed Aug 22, 2024
1 parent 2f9a6ac commit 4f4bba0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ DJANGO_SECRET_KEY=your_django_secret_key
All libraries are included to facilitate offline development, it will take port 8008, 8025, 5555 when running, please change port in local.yml if those ports are occupied. It's Debian based.

* clone the repo, for example, `git clone https://github.com/xjlin0/attendees32.git`
* check local python version, Django coockie cutter is developed with Python 3
* check local python version, Django cookie cutter is developed with Python 3
* Install pre-commit for python, such as `pip3 install pre-commit` (pre-commit settings are at .git/hooks/pre-commit).
* There is no need to have local docker machine, Django or Postgres running.
* Add .envs/.local/.sendgrid.env
Expand Down
1 change: 1 addition & 0 deletions config/settings/production.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@
# STATIC
# ------------------------
STATICFILES_STORAGE = "whitenoise.storage.CompressedManifestStaticFilesStorage"
WHITENOISE_MAX_AGE = 28800 # 8 hours in seconds
# MEDIA
# ------------------------------------------------------------------------------
DEFAULT_FILE_STORAGE = "attendees.utils.storages.MediaRootS3Boto3Storage"
Expand Down

0 comments on commit 4f4bba0

Please sign in to comment.