Provide a nicer selector for cache backends compatible with settings.CACHES.

Review Request #3603 — Created Dec. 1, 2012 and submitted

chipx86
Review Board
release-1.7.x
reviewboard
Provide a nicer selector for cache backends compatible with settings.CACHES.

The cache backend selector in General Settings is now much nicer,
providing a dropdown of possible cache types and an appropriate field
for entering the hosts or cache location.

Two entries are provided by default: Memcached and File cache.

If running with DEBUG = True, then "Local memory cache" will also be
available, making it easier to test and debug things.

If some other cache backend is used, then "Custom" will be an option as
well, and will leave the cache settings untouched.

This moves us away fully from the old Django CACHE_BACKEND setting.
Tested each cache backend and verified that the correct cache settings
were stored in siteconfig and were being loaded out correctly.
Loading file attachments...

Description From Last Updated

Can you specify that this should be in hostname:port form?

daviddavid

I'm really not sure what indentation levels you're trying to use here.

daviddavid
david
  1. 
      
  2. reviewboard/admin/forms.py (Diff revision 1)
     
     
     
    Can you specify that this should be in hostname:port form?
  3. reviewboard/templates/admin/general_settings.html (Diff revision 1)
     
     
     
     
     
     
     
     
     
     
    I'm really not sure what indentation levels you're trying to use here.
  4. 
      
chipx86
david
  1. Ship It!
  2. 
      
chipx86
Review request changed

Status: Closed (submitted)

Change Summary:

Pushed to master (a5fdabc)
Loading...