pods-framework / pods

The Pods Framework is a Content Development Framework for WordPress - It lets you create and extend content types that can be used for any project. Add fields of various types we've built in, or add your own with custom inputs, you have total control.
https://pods.io/
GNU General Public License v2.0
1.07k stars 265 forks source link

Improve fetching posts and transient handling #6561

Open JoryHogeveen opened 2 years ago

JoryHogeveen commented 2 years ago

I noticed that Pods 2.8+ creates much more querys than before. One part is done by \Whatsit\Storage\Post_Type::find().

Also, there are many transients stored for Pods and it's objects. Maybe we can improve on this part as well. Transients are nice but we'll have to check whether they are actually faster in all cases since our transients are not set to autoload anymore.

sc0ttkclark commented 2 years ago

Part one of this is done with the reducing queries (merged into 2.9), more can be done in a future release as well.