# Bug OP-12335 - Files tab doesn't cache user info

Project: OpenProject
Status: closed
URL: https://community.openproject.org/work_packages/OP-12335

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module |  |
| Target versions | 13.0.0 |
| Observed in versions |  |
| Sprint | 13.0.0 |
| Backlog bucket |  |
| Bug found in version (deprecated) |  |
| Found in mobile app version |  |
| Follow-up feedback e-mail |  |
| Requires doc change | No |
| Accessibility | No |
| Pull preview |  |
| List |  |
| Labels |  |

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable |  |
| Product manager |  |
| Developers |  |
| Designer |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Planning

| Attribute | Value |
| --- | --- |
| Relevance |  |

## Costs

| Attribute | Value |
| --- | --- |
| Votes |  |
| Work |  |
| Labor costs |  |

## Description

When there are many files in the files tab, each of them will cause a separate request to the users API. With enough files this will cause rate limiting (429) errors.

### Steps to reproduce

1.  Create a work package
2.  As the same user upload 3 files in the files tab
3.  With the network log open, reload the page
4.  notice 3 requests against /api/v3/users/n where N is your user's ID
5.  Add another file
6.  Repeat step 3 and notice 4 requests to the users API
7.  etc. pp.

### What is the buggy behavior?

  - The same user info is requested over and over again.

### What is the expected behavior?

  - The info for the same user should only be requested once and re-used.

### Screenshots and other files

<img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/54027/content">

### Environment information

*Please check and fill out the following details to help us identify in what versions and distributions of OpenProject the error occurs*

**OpenProject installation type**

- [x] Hosted cloud edition
- [ ] Packaged installation
    - What distribution?
- [ ] Docker All-in-one container
- [ ] Docker-compose installation
- [ ] Other (please specify)

**OpenProject version**

v12.5.2

**Browser**

- [x] Chrome
- [ ] Firefox
- [ ] Safari
- [ ] Mobile Safari
- [ ] Other (please specify)
