admin管理员组

文章数量:1122846

I have a parent CPT (Form) and a child CPT (Registration).

Form A currently has around 3,000 child registration posts. Am showing them on a custom admin table, 20 posts per page. The table columns show various meta values (say reg_name, reg_email).

Am encountering the following error: Around every 1-2 hours, for around 10-15 minutes, all the meta values are empty. Then they show well again, only for the issue to reappear later.

During this downtime, when testing retrieving registration post meta values, they return empty. After the downtime, they work well.

get_post_meta( $reg_post->ID, 'reg_name', true ); // Returns: ""

$reg_post->reg_name; // Returns: ""

get_post_meta( $reg_post->ID ) // Returns: []

Looked in the database and the meta values are always there, including in the downtime.

There is a Form B which has around 100 registration posts. The issue does not happen there, even when Form A is in downtime.

What could be causing this issue?

本文标签: custom post typesCPT meta values intermittently return empty