Hey, so I have some pretty complex fields that are only set to show on the front page. I can edit them and display them just fine, however I’m noticing some really odd data behavior. Essentially, every time I save the page, it saves a different version of the data to wp_postmeta with the ‘new’ post_id of the page. Now this is all fine and good with simple fields, but with more complex fields, this is adding hundreds of entries an update. Also, the issue that prompted this was a badly-structured field that caused my database to hit upwards of 45,000 entries, which started causing all sorts of back-end memory issues.
My only question is: is there any way to make it so this plugin does not save a new set of entries when wordpress makes a new version of the page? OR is there a way to get wordpress to overwrite a page rather than duplicating it as a different post.
Okay, so I fixed it with a plugin.
Better delete revisions
It’s very straight forward, but removes all revisions including the wp_postmeta associated with them. I would definitely suggest using this on a staging database first, but it worked like a charm for me.
Viewing 3 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users