Fix caching for Projects#show when not using private repositories
authorChristian Johansen <christian@cjohansen.no>
Wed, 25 Apr 2012 19:03:42 +0000 (21:03 +0200)
committerChristian Johansen <christian@cjohansen.no>
Wed, 25 Apr 2012 19:03:42 +0000 (21:03 +0200)
commit662a052f74a71b62fc836c5c1d9e05656fa5e76c
treedbba5f53f86cf481398fc528fb998ecb1e9b9fdd
parent305d45e59fad6b1973832f6e64f62544fb5fb16c
Fix caching for Projects#show when not using private repositories

  - Don't perform the filter check on uncached events on instances
    that are not using private repositories
  - Don't cache events for projects when using private repositories.
    They can be cached, but if so, the current user needs to be part
    of the cache key.
app/controllers/projects_controller.rb