horizon/releasenotes/notes/cleanup-cache-command-64a5020755c5e05c.yaml
Ivan Kolodyazhny 0d290b9184 Fix django-compress caching issues
django-compress doesn't work well with cache. If horizon is
deployed in a containarized environment with pre-built static
in images, django-compress tries to load old templates from cache.

This patch introduces following changes:

* update_angular_template_hash uses the correct Django cache backend now
* fixed cache cleanup for memcached backend
* added clean_angular_template_cache management command to clean cache
  manually without executing heavy 'compress' command.

Closes-Bug: #1874657
Change-Id: If1fd61fa2e4b36e22797b0f54ac067a2a937f369
2020-06-15 17:33:16 +03:00

11 lines
387 B
YAML

---
features:
- |
Added an ``cleanup_angular_template_cache`` management command, that clears
template cache for angularized views. The command is available
as ``./manage.py cleanup_angular_template_cache``.
fixes:
- |
[`bug/1874657 <https://bugs.launchpad.net/horizon/1874657>`_] Horizon
container upgrade works without additional ``./manage.py compress`` call.