Skip to content

Conversation

@jerclarke
Copy link
Contributor

Old out of date PR:
#548

Issue this addresses:
#505

This adapts the core elements of Cojennin's PR while integrating changes made to calendar.php since the patch was created.

The important thing it does is shift what we cache in generate_post_li_html() from being the final HTML to being the "information fields". This avoids having user-specific nonces get cached, allowing us to have the cache function without the user IDs, and thus allowing us to correctly purge the cache.

The issues with these changes is that they don't move the needle in terms of performance. On my local site, the old caching brought generation time from 3s to 1s. With this caching, there's no noticeable difference at all, on or off the results were between 3.09 and 3.11 seconds.

ingeniumed and others added 2 commits June 4, 2024 09:58
Old out of date PR:
Automattic#548

This adapts the core elements while integrating changes made to calendar.php since the patch was created.

The important thing it does is shift what we cache in `generate_post_li_html()` from being the final HTML to being the "information fields". This avoids having user-specific nonces get cached, allowing us to have the cache function without the user IDs, and thus allowing us to correctly purge the cache.

The issues with these changes is that they don't move the needle. On my local site, the old caching brought generation time from 3s to 1s. With this caching, there's no noticeable difference at all, on or off the results were between 3.09 and 3.11 seconds.
@GaryJones GaryJones changed the base branch from main to develop November 13, 2025 15:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants