Commit Graph

11 Commits

Author SHA1 Message Date
GitLab Bot 91035102b4 Add latest changes from gitlab-org/gitlab@master 2022-08-03 12:11:38 +00:00
GitLab Bot 6aead03bb3 Add latest changes from gitlab-org/gitlab@master 2021-06-08 00:10:34 +00:00
GitLab Bot 0ae8428c8e Add latest changes from gitlab-org/gitlab@master 2021-05-11 21:10:21 +00:00
GitLab Bot b7dfe2ae40 Add latest changes from gitlab-org/gitlab@master 2019-09-13 13:26:31 +00:00
Luke Duncalfe a0b14c40dc CE-specific changes for designs `user_notes_count`
Notes call `#after_note_created` and `#after_note_destroyed` on their
noteable in callbacks, so the noteable can perform tasks particular to
them, like cache expiry.

This is in preparation of the EE-specific class
`DesignManagement::Design` clearing its `user_notes_count` cache when
its note are created or destroyed.

Refactoring Rspec behaviour testing of a counter caching service into a
shared example.

https://gitlab.com/gitlab-org/gitlab-ee/issues/13353
2019-08-27 20:50:26 +00:00
gfyoung ddca49e4b5 Enable frozen string in apps/uploaders/*.rb
Partially addresses #47424.
2018-07-16 06:41:59 -07:00
Felipe Artur 4ab1011d42 Fix refresh cache for open issues count service 2018-06-21 17:34:33 -03:00
Francisco Lopez c85f9c5b1d Code review comments applied 2017-12-01 18:32:12 +01:00
Francisco Lopez a2babf32fe More preloading improvement and added batch count services 2017-12-01 18:32:12 +01:00
Brett Walker e292bf5b88 allow caching options to be specified for counting services 2017-11-30 22:23:07 +00:00
Yorick Peterse 3e561736b2
Cache the number of user SSH keys
By caching the number of personal SSH keys we reduce the number of
queries necessary on pages such as ProjectsController#show (which can
end up querying this data multiple times).

The cache is refreshed/flushed whenever an SSH key is added, removed, or
when a user is removed.
2017-11-16 14:59:38 +01:00