For a newly created project - https://www.drupal.org/project/dream_permissions there are some issues

1/ dev release is not visible, but created see https://www.drupal.org/node/2646756/release
2/ issues numbers are all at 0

Comments

attiks created an issue. See original summary.

naveenvalecha’s picture

I have updated the development snapshot release Show in project’s download table when branch is supported to display on project homepage.

2/ issues numbers are all at 0

I believe its due to cache of the block but infra team can provide more detail about it.

attiks’s picture

@naveenvalecha thanks

drumm’s picture

Title: Project home problems » Block cache not invalidated properly
Project: Drupal.org infrastructure » Project issue tracking
Version: » 7.x-2.x-dev
Component: Other » Issues

Yes, the block with issue counts is actually has two layers of caching. I cleared it for the project and this led me to find an underlying issue.

There are a few calls like

cache_clear_all('project_issue_cockpit_block:' . $pid, 'cache');

At minimum, they should be:

cache_clear_all('project_issue_cockpit_block:' . $pid . ':', 'cache', TRUE);

Because another section of the cache key was added, but the cache_clear_all() calls weren't updated.

I recently learned about hook_block_cid_parts_alter(). There may be a way to implement that and simplify the caching down to one layer, core block caching. I'm not sure if that will work with homebox getting the cached blocks, since it mucks with the cache IDs after altering.