epiphyt / embed-privacy

Embed Privacy prevents loading of embedded external content and allows your site visitors to opt-in.
https://epiph.yt/en/embed-privacy/
GNU General Public License v2.0
19 stars 12 forks source link

Replace custom post type with something more lightweight #194

Open MatzeKitt opened 1 year ago

MatzeKitt commented 1 year ago

What feature are you requesting?

The custom post type for embeds is quite heavy in resource usage. Additionally, there is no benefit in using a CPT here. This should be changed to a simple option with serialized data with an easier interface for editing, while maintaining the same functionality:

Why is this feature necessary?

Improved performance and less data in database

Are you expecing side-effects?

No response

Code of Conduct

MatzeKitt commented 7 months ago

Don’t do it this way. Check for other possibilities to limit its usage. Maybe adding a wrapper to only request data we need instead of full WP_Post objects.

However, it’s not a big issue so far, so maybe we leave it as is, for now.