gitlab-org--gitlab-foss/app/models
Yorick Peterse cd05d3f78d Cache project avatars stored in Git
The avatar logic has been moved from Project to Repository as this makes
caching easier. The logic itself in turn has been changed so that the
logo file names are cached in Redis. This cache is flushed upon pushing
a commit but _only_ if:

1. The commit was pushed to the default branch
2. The commit actually changes any of the logo files

If no branch or commit is given the cache is flushed anyway, this
ensures that calling Repository#expire_cache without any arguments still
flushes the avatar cache (e.g. this is used when removing a project).

Fixes gitlab-org/gitlab-ce#14363
2016-03-17 18:51:54 +01:00
..
ci
concerns
hooks
members
network
project_services
.gitkeep
ability.rb
abuse_report.rb
appearance.rb
application_setting.rb
audit_event.rb
blob.rb
broadcast_message.rb
commit.rb
commit_range.rb
commit_status.rb adjusted behavior so canceled builds tagged as allowed to fail do not fail build 2016-03-17 07:55:10 -07:00
deploy_key.rb
deploy_keys_project.rb
email.rb
event.rb
external_issue.rb
forked_project_link.rb
generic_commit_status.rb
global_label.rb
global_milestone.rb
group.rb
identity.rb
issue.rb
jira_issue.rb
key.rb
label.rb
label_link.rb
lfs_object.rb
lfs_objects_project.rb
member.rb
merge_request.rb
merge_request_diff.rb
milestone.rb
namespace.rb
note.rb
notification.rb
personal_snippet.rb
project.rb Cache project avatars stored in Git 2016-03-17 18:51:54 +01:00
project_group_link.rb
project_import_data.rb
project_snippet.rb
project_team.rb
project_wiki.rb
protected_branch.rb
release.rb
repository.rb Cache project avatars stored in Git 2016-03-17 18:51:54 +01:00
security_event.rb
sent_notification.rb
service.rb
snippet.rb
spam_log.rb
spam_report.rb
subscription.rb
todo.rb
tree.rb
user.rb
users_star_project.rb
wiki_page.rb