[wp-trac] [WordPress Trac] #34325: get_posts seems to have issues including posts "published in the past"
WordPress Trac
noreply at wordpress.org
Mon Oct 19 03:28:53 UTC 2015
#34325: get_posts seems to have issues including posts "published in the past"
-------------------------------------+------------------------------
Reporter: kevingimbel | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Posts, Post Types | Version: 4.3
Severity: normal | Resolution:
Keywords: reporter-feedback close | Focuses:
-------------------------------------+------------------------------
Changes (by boonebgorges):
* keywords: reporter-feedback => reporter-feedback close
Comment:
Hi kevingimbel - Welcome to Trac!
As swissspidy noted, the fact that you were able to work around the issue
by creating and deleting a new post makes it sound like a caching issue.
And the fact that you're not seeing stale content on wp-admin makes it
sound like it might be related to a static page caching tool, which only
operates on the front-end. Are you using anything like WP Super Cache or
some other page cache? It's possible that your caching plugin has a bug
that causes the page cache not to be regenerated when you change the
publish date on a post.
(As a side note, `WP_Query` itself does not cache these kinds of queries
at all. So it's highly likely that this is *not* a core bug.)
--
Ticket URL: <https://core.trac.wordpress.org/ticket/34325#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list