Duplicates meta data values
-
Hi! Love your plugin, but recently found an issue that was causing a lot of problems on a few sites of mine – it seems that when you duplicate a post, it doubles up any custom meta data that is in the post.
It does this in fact every time you clone a post. Not a big deal for smaller sites with only a few posts, or if you always clone from an original post – e.g. using a ‘template’ post – but for sites with tons of content, or that frequently clone recent posts … recent posts that were clones of other posts, being clones of slightly older posts, and so on …. well, every time a clone is made it DOUBLES the meta tag fields stored in the database for the next post – so by the 4th or 5th iteration, the number of meta data fields in the POST_META table rises exponentially.
I discovered this because we use SmartSlider 3 to create dynamic slides based on new posts. SS3 pulls info from the POST_META table to create those dynamic slides, and when many of our recent posts had hundreds of duplicate rows of data, this caused timeouts as it tried to access that table :/
I resolved the issue for the client by using WP-Sweep to remove those duplicates and have (for now) disabled your plugin. We were using the most recent version. Our base theme in this case was a Genesis child theme. Some of the meta data fields we saw most frequently duplicated was related to the title – _genesis_title – and related SEO fields, though it seemed as though all fields in the table were being duplicated similarly, such as the social counts from our social sharing plugins, and like that.
I hope this gives enough info to figure out what may be happening on your end? I did not look into your code to see if I could spot where the issue is being generated, but should think it would be where you are touching the database and creating new records for the duplicated post.
I’m more than happy to answer other questions or help out however I can if you need anything. Thanks!
-michael
- The topic ‘Duplicates meta data values’ is closed to new replies.