Skip to content

Commit

Permalink
Merge branch 'hotfix/v2.4.9'
Browse files Browse the repository at this point in the history
  • Loading branch information
ambroisemaupate committed Jan 21, 2025
2 parents bc20fa7 + 3065603 commit e556302
Showing 4 changed files with 19 additions and 1 deletion.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -2,6 +2,12 @@

All notable changes to project will be documented in this file.

## [2.4.9](https://github.com/roadiz/skeleton/compare/v2.4.8...v2.4.9) - 2025-01-21

### Bug Fixes

- Fixed solr:reindex issues on crontab by clearing cache at startup - ([1d5b368](https://github.com/roadiz/skeleton/commit/1d5b368168deec50193a2f910275aa09e192b4b0)) - Ambroise Maupate

## [2.4.8](https://github.com/roadiz/skeleton/compare/v2.4.7...v2.4.8) - 2025-01-14

### Bug Fixes
4 changes: 4 additions & 0 deletions docker/php/docker-cron-entrypoint
Original file line number Diff line number Diff line change
@@ -26,6 +26,10 @@ echo "APP_DEBUG=${APP_DEBUG}";
# To improve performance (i.e. avoid decrypting secrets at runtime),
# you can decrypt your secrets during deployment to the "local" vault:
/usr/bin/sudo -E -u php -- bash -c "APP_RUNTIME_ENV=prod /app/bin/console secrets:decrypt-to-local --force"
# Must clear cache before launching cron to avoid issues with Solr reindexing
/usr/bin/sudo -E -u php -- bash -c "APP_RUNTIME_ENV=prod /app/bin/console cache:clear -n"
# Clear all cache pool on Symfony
/usr/bin/sudo -E -u php -- bash -c "APP_RUNTIME_ENV=prod /app/bin/console cache:pool:clear cache.global_clearer -n"

# Let cron take the wheel
echo "Starting cron in foreground."
2 changes: 1 addition & 1 deletion docker/php/docker-php-entrypoint
Original file line number Diff line number Diff line change
@@ -34,7 +34,7 @@ echo "APP_DEBUG=${APP_DEBUG}";

# Clear caches after migrations
/app/bin/console cache:clear -n
# Clear all cache pool on Symfony 5.4 https://symfony.com/doc/5.4/cache.html#clearing-the-cache
# Clear all cache pool on Symfony
/app/bin/console cache:pool:clear cache.global_clearer -n

# first arg is `-f` or `--some-option`
8 changes: 8 additions & 0 deletions docker/varnish/default.vcl
Original file line number Diff line number Diff line change
@@ -199,5 +199,13 @@ sub vcl_deliver {
# Make sure to allow CORS on Cache-Tags header if you want to use it on Nuxt.
unset resp.http.X-Cache-Tags;
unset resp.http.Cache-Tags;

# We want to expose API cache-tags to the client, especially Nuxt to be able to purge frontend cache
# But we don't want to expose cache-tags to the client on Nuxt pages
#if (req.url !~ "^/api") {
# # Remove cache-tags, unless you want Cloudflare or other to see them
# unset resp.http.X-Cache-Tags;
# unset resp.http.Cache-Tags;
#}
}

0 comments on commit e556302

Please sign in to comment.