id,summary,reporter,owner,description,type,status,priority,milestone,component,version,severity,resolution,keywords,cc,focuses 40669,Proper query cache invalidation on queries meta queries,spacedmonkey,boonebgorges,"Currently, terms and comments have query caching and meta query support. Queries are cached using the use the last_changed in the object cache group. Query caches are invalidated (busted) when the last_changed value is changed, when a term / comment is changed / created. However, when meta on these objects are changed / deleted, query are not invalidated. Example. - Run a comment query with a meta query foo=bar. Get 4 results. - add_comment_meta to a new comment. - Run a comment query with a meta query foo=bar. It will return cached result of 4, even through the result should be 5. This is an issue, if plugin developers, use the meta functions to add meta to an object, queries should still invalidate. ",defect (bug),closed,normal,4.9,Query,,normal,fixed,has-patch dev-feedback needs-unit-tests,,performance