[wp-hackers] wp_get_sites cache/transient

Otto otto at ottodestruct.com
Wed Feb 19 09:55:28 UTC 2014


The wp_get_sites function isn't cached. It selects the data directly from
the database. You can see the code yourself at the bottom of
wp-includes/ms-functions.php.

If you want it to not return deleted sites, you need to pass it deleted=0
as an argument.

-Otto



On Wed, Feb 19, 2014 at 3:46 AM, Tom Barrett <tcbarrett at gmail.com> wrote:

> Can anyone point me to where the data returned by this function is cached?
>
> It is continuing to include a blog that was deleted days ago, I'm having to
> check against get_blog_details() in order to stop SQL errors trying to look
> up against tables that don't exist.
>
> Thanks!
>
> --
> http://www.tcbarrett.com | http://gplus.to/tcbarrett |
> http://twitter.com/tcbarrett
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>


More information about the wp-hackers mailing list