Home › Forums › Backend Issues (wp-admin) › Database cleanup, feedback on function › Reply To: Database cleanup, feedback on function
If you can do it with a cron task then you don’t need to worry about it timing out. You can set_time_limit(0);
Like I said, there are some known issues with doing queries and joins or multiple inner joins from the post to the postmeta table. I’ve recently read about it but don’t recall where. There are plans to fix it, but that doesn’t solve you problem now. But what this means is that if it’s queries for searching posts by post meta, depending on how many meta_query values you’re supplying it may not help the problem.
Also, it won’t stop the empty rows from building up in the database in the future. If this is a concern then you should create an acf/save_post action to remove empty fields when posts are published or updated in the future. http://www.advancedcustomfields.com/resources/acfsave_post/
I’d really like to know if removing the empty values helps your situation, it it does I’ll likely build a plugin for myself that does this on all ACF fields.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Cookie Policy. If you continue to use this site, you consent to our use of cookies.