Support Log in

30. Performance Optimization

Developer Guide
Prefer video? Watch the Field Forge tutorials 8 short guides covering every feature Watch

Field Forge keeps field values in its own table, wp_fieldforge_values, and caches the values of each post. There is no measured comparison with ACF, so this page quotes no speed-up figures.

Custom Table vs PostMeta

Featurewp_postmeta (ACF)wp_fieldforge_values (Field Forge)
Query structureKey-value pairs, one row per fieldTyped rows with dedicated indexes
Compound fieldsFlattened: repeater_0_title, …Hierarchical: parent_id / row_index
Reading top-level fieldsOne postmeta row per fieldOne query per post for all its top-level values, then the object cache
Cache integrationRelies on WordPress meta cacheObject cache entry per post (group fieldforge_values, 300 seconds)

How values are read

The first get_field() call for a post runs one query that loads all of the post’s top-level values and keeps the result in the object cache (group fieldforge_values, key = post ID, 300 seconds), so the next calls for the same post run no query. Repeater and group rows are not in that entry; they are read from the database. When a value is saved or deleted, the entry of that post is dropped.

Loops over many posts

A loop over many posts costs one query per post the first time a field of that post is read. fieldforge_preload() exists, but get_field() does not read what it loads (it fills a separate cache group), so calling it does not remove queries. The same is true of the preload that Field Forge runs on the the_posts hook. With a persistent object cache (Redis, Memcached) a repeat view of the same posts skips those queries for 300 seconds.

—

Forge AI Assistant Online

Hi! I'm the Field Forge AI assistant. Ask me anything about the plugin — setup, features, troubleshooting, or development.

Just now
Powered by Forge AI · Browse docs