You can try a trick with querying post data directly and setting filter
field of post objects to sample
before passing it to get_permalink()
to reduce memory usage.
See get_permalink memory usage issue for detailed reasoning behind it.
You can try a trick with querying post data directly and setting filter
field of post objects to sample
before passing it to get_permalink()
to reduce memory usage.
See get_permalink memory usage issue for detailed reasoning behind it.