Skip to content
Snippets Groups Projects
  • Benjamin Bertrand's avatar
    be364ef4
    Remove caching of user retrieval · be364ef4
    Benjamin Bertrand authored
    The caching of the load_user function already created several bugs
    (INFRA 908/1018).
    It requires to think about adding (or deleting in the admin view)
    the current_user to the session. This is easy to miss.
    
    It saves some database queries but we don't need this optimization.
    Performances are not impacted and are good enough so far.
    
    Removing the caching makes the application more robust and easier to
    maintain.
    
    JIRA INFRA-1025 #action In Progress
    be364ef4
    History
    Remove caching of user retrieval
    Benjamin Bertrand authored
    The caching of the load_user function already created several bugs
    (INFRA 908/1018).
    It requires to think about adding (or deleting in the admin view)
    the current_user to the session. This is easy to miss.
    
    It saves some database queries but we don't need this optimization.
    Performances are not impacted and are good enough so far.
    
    Removing the caching makes the application more robust and easier to
    maintain.
    
    JIRA INFRA-1025 #action In Progress
Code owners
Assign users and groups as approvers for specific file changes. Learn more.