Project

General

Profile

Bug #15480

Ensure homepage caches are cleared when blog posts are published on other sites

Added by Raymond Hoh 4 months ago. Updated 4 months ago.

Status:
Resolved
Priority name:
Normal
Assignee:
Category name:
Home Page
Target version:
Start date:
2022-02-28
Due date:
% Done:

0%

Estimated time:

Description

Currently, some homepage blocks require caching and are cached on the main site only.

However, whenever a blog post is published on another site, the "Active Sites", "Sites Across CUNY" and "CUNY-Wide Activity" caches are not cleared. This can result in stale data for these homepage blocks.

Will need to register a new global cachegroup so we can clear these caches effectively across the entire site.

Fix coming shortly.

History

#1 Updated by Raymond Hoh 4 months ago

  • Status changed from Assigned to Staged for Production Release

Addressed in https://github.com/cuny-academic-commons/cac/commit/bca3b86a71c6765ba91653bfb52f32c8da7d06f8.

Boone, just a FYI that I've registered a new global cachegroup -- 'cac' -- and moved the homepage cache deletion routine from bp-nelo to bp-custom.php to ensure it runs sitewide.

#2 Updated by Boone Gorges 4 months ago

Good call - I'd missed the site-specific aspect of the caching during development. Thank you!

#3 Updated by Boone Gorges 4 months ago

  • Status changed from Staged for Production Release to Resolved

Also available in: Atom PDF