Records suddenly unavailable to [pdb_list] become available if submitted again
-
I am writing a custom template to go with a [pdb_list] shortcode. The template writes out, as separate tables, all parenting program run face-to-face, and all parenting programs run online. I am using groups to discriminate between which fields are common to both types of parenting programs, and which are specific to only one type of program. One of the common fields is a hidden field called ‘program_type’. Here I store either the string ‘list-online-program’ or ‘list-face-to-face-program’ when a user first registers a parenting program online (there are two different signup forms, one for each type of program). I populate the hidden ‘program_type’ field by giving it a default value of post->post_name. The result is that the field is populated with the slug of the relevant sign up page.
This morning, my list template, while still in development, was showing both program_type=’list-online-program’ and program_type=’list-face-to-face-program’ quite nicely when suddenly, seemingly out of the blue, all the program_type=’list-face-to-face-program’ programs became unavailable to the template. When I say ‘unavailable’, I mean no records for these programs were present in a dump of $this->records, while records for the program_type=’list-online-program’ programs were still available. I’ve found that if I use the Participants Database ‘List Participants’ page and simply Submit details of a face-to-face program (without changing these details in any way) then this record does become available to my template. Doing a WordPress cache ‘Purge all’ has no effect.
I’m wondering if you have any explanation as to why I might be seeing this behaviour. Is it perhaps caused by some kind of WordPress or Participants Database (or even MySQL) caching behaviour? In a test setup it’s not a big deal to have to re-submit less than a hundred records, but I wouldn’t like to see such a sudden ‘disappearance’ of records on my list page to occur in a production environment.
- The topic ‘Records suddenly unavailable to [pdb_list] become available if submitted again’ is closed to new replies.