Skip to content

Calendar: Object cache not cleared #505

@asadowski10

Description

@asadowski10

Hi team,

Since the 0.8.3 release and the feature > Improvement: Cache calendar items for each user individually to prevent potential cache pollution. Props justnorris.
We are having cache problems.
When we update content, the cached version is not updated.

The cache key is based on the user_id ( $cache_key = $post->ID . $can_modify . '_' . get_current_user_id(); ) but when you delete the cache , the key has no user_id ($post_id . 'can_modify' )
https://github.com/Automattic/Edit-Flow/blob/master/modules/calendar/calendar.php#L1800

Could you delete cache for user or remove user_id in cache key to have cache for all users ?

Thanks a lot

Metadata

Metadata

Assignees

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions