• 
      

    Fix bad default cache settings on new installs.

    Review Request #15081 — Created May 27, 2026 and submitted

    Information

    Review Board
    release-8.x

    Reviewers

    When setting up rb-site's state, the cache is temporarily overridden
    in order to have a place to stash settings and avoid polluting a
    production server cache. Unfortunately, on a new install, this ends up
    getting saved out to siteconfig settings, since the default stored
    cache_backend comes from CACHES['default'].

    We now explicitly set the desired cache backend when storing the initial
    settings for the site.

    Tested this with new local installs and Docker installs. Verified that
    the configured cache setup was in use instead of a local memory cache,
    and that this was reflected both in settings and in siteconfig.

    Summary ID
    Fix bad default cache settings on new installs.
    When setting up `rb-site`'s state, the cache is temporarily overridden in order to have a place to stash settings and avoid polluting a production server cache. Unfortunately, on a new install, this ends up getting saved out to siteconfig settings, since the default stored `cache_backend` comes from `CACHES['default']`. We now explicitly set the desired cache backend when storing the initial settings for the site.
    c045d199cb449b14f037856e4fae1c109dc5e130
    david
    1. Ship It!
    2. 
        
    chipx86
    Review request changed
    Status:
    Completed
    Change Summary:
    Pushed to release-8.x (3c223b2)