Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Events: Prepare events to fix invalid date error #1206

Merged
merged 1 commit into from Jan 16, 2024

Conversation

iandunn
Copy link
Member

@iandunn iandunn commented Jan 16, 2024

WordPress/wporg-mu-plugins#552 applied prepare_events() to all code paths callbacks for google_map_event_filters_{$filter_slug}. #1191 removed the timestamp property from events, because prepare_events() adds it dynamically.

That commit should have also updated prime_query_cache(), since it sets the same transient as Google_Map\get_events(). That was missed, and that caused the city landing pages to display invalid date after the events_landing_prime_query_cache cron job ran.

@iandunn iandunn added this to the Events: Promotion milestone Jan 16, 2024
@iandunn iandunn self-assigned this Jan 16, 2024
WordPress/wporg-mu-plugins@ebfc71a applied `prepare_events()` to all code paths callbacks for `google_map_event_filters_{$filter_slug}`. 3a7cccd removed the `timestamp` property from events, because `prepare_events()` adds it dynamically.

That commit should have also updated `prime_query_cache()`, since it sets the same transient as `Google_Map\get_events()`. That was missed, and that caused the city landing pages to display `invalid date` after the `events_landing_prime_query_cache` cron job ran.
@iandunn iandunn marked this pull request as ready for review January 16, 2024 22:26
@iandunn iandunn merged commit 9290b54 into production Jan 16, 2024
3 checks passed
@iandunn iandunn deleted the prepare-city-landing-events branch January 16, 2024 22:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: ✅ Done
Development

Successfully merging this pull request may close these issues.

None yet

1 participant