You’re completely right at the beginning – caching is always a good idea, when you deal with results that are hard to get. But…
That’s not the case in here. Registering post types and meta boxes is not complex at all – it’s just few PHP operations. They won’t take much time (nor computation power) to be done.
So what is complex? Everything that takes long time, needs many DB queries or a lot of computation power/resources.
Let’s say you want to calculate number of words on your site. So you have to loop through all posts and count words. That’s perfect case for caching – it’s complex, because it’ll take much time – so you do it once and store the result in cache (probably in transients) for later.
Related Posts:
- Delete all posts of a custom post type—efficiently
- WordPress Custom Post Type Admin Page really slow
- How often do you need to register_post_type?
- Is there any performance consideration when using Custom Post Types?
- Filtering by Post Meta Custom Fields – Performance
- Getting a PHP Notice when using Pods with WPML [closed]
- Custom Post Types. Are there any disadvantages/advantages in using a plugin to develop them?
- Are pages consuming more server resources than posts?
- Custom Post Type + ACF and performance [closed]
- Side effects of Script and Iframe in post
- Static page determines as home, but it is not
- Terms showing up in object cache on unrelated pages
- Cache issue with WP_Query and custom field filtering
- Problem with customize page cached in WordPress.com [closed]
- Simple way to hide\show an announcement (just a div) on homepage?
- Why is this function so slow?
- is using “require_once” in wordpress theme affect the speed ???
- Custom Post Type vs Shortcode: Which one is more performant?
- Most efficient way of deleting post
- WordPress Admin Page Slow. Customer Post Type is the slowest
- Loop for custom post types filtered by a taxonomy
- Number of posts in the archive
- custom post data – how to
- calling categories in a custom post type
- Custom post_type search pages
- Ordering Submenu Pages in WP 3.1
- How can i link a custom post type thumbnail to intermediate size
- Including link to custom post type in ‘wp_list_pages’ function
- 404 Error on form submission within custom post type
- More quicktag driving me nuts
- Query of custom post types only shows first post
- Custom query for custom post_type
- Creating tags via API
- Adding custom field values to wp_list_pages
- Custom post types or not custom post types?
- Save Multiple Metabox values
- Call to a member function add_rewrite_tag() on null on register_post_type [duplicate]
- I don’t understand why use array inside the add action hook to create custom post type using object oriented way
- Query multiple taxonomies with pre get posts
- Enable taxonomies by post type in an array of CPTs
- Delete “Post Published. View Post” for custom post type
- Main menu not appearing in custom post type archive
- How to add/edit advanced custom fields on custom post type’s WordPress REST API?
- Relationship between set rewrite flag in register_post_type and add_rewrite_rule
- What’s the name of the custom post type yearly archive template?
- How to query 2 custom post types that need to share a slug?
- Slug for custom post type
- Custom Post type: Labels are not showing
- Get rid of “trash can” for custom post type
- Combine multiple getEntityRecords calls
- Custom post type editor uses old tinyMCE
- Checking if looped item has a parent inside a shortcode
- How to assign tag to custom post type in wordpress?
- Do posts, pages and / or custom post type objects have unique ID numbers or can there be multiple objects with the same IDs?
- Send a conditional email notification when a custom field value changes in Post Type
- Pagination custom post type not working with rewrite slug
- Pagination Not Working for Custom Taxonomy with Custom Query – 404 Error
- Check for a specific taxonomy of a custom post type
- Recoverable Fatal Error – Object of class WP_Post could not be converted to string
- Custom Post Type Slick Slider “$ is not a function”
- Get parent category id from child category page for custom taxonomy
- Make custom post type a media library
- Trying to get custom post of a custom taxonomy
- Custom Taxonomy Is Being Pulled into a Page, But It Doesn’t Have A Hyperlink
- Custom post type menu-icon not showing up
- Querying & displaying custom post type into an existent page [closed]
- WordPress custom post type capabilities issue
- Querying two taxonomies with tax_query not woking
- i cant see the max_num_pages of a custom wp query
- Enable Custom Fields For Custom Post Type When CPT Created Using Plugin
- How to get all post of custom post type by rest api?
- How can I group posts by months and years?
- Custom post type, global categories — what’s the template name?
- Custom rewrite to fetch feed data
- Rename a slug label
- Convert post type to another
- Pagination Error : Duplicate argument being outputted
- Create custom post with meta field with AJAX and the WordPress REST API
- WordPress wp_query() basic question about args
- how to remove pages loading with the archive templates
- Should I create Custom Page Types?
- Mutiple Select only POSTing 1 value
- Is it possible to show multiple (custom) post types at the wp homepage only by using pluging code?
- Get an array wich contains the post_name of every post that has the custom post_type “pelicula”
- Getting used tags per post type
- Specifying meta field’s column type in Database using add_post_meta
- get_post_type is always post
- show custom value from frontend form in a post (custom post type)
- PHP question: how to combine syntax?
- Archieve.php not loading for custom post type
- WordPress API for custom post types returns rest_no_route
- Loop to display custom post type from a custom Taxonomy
- Multiple Custom Post Type queries, how to DRY it up
- the_content(); of custom post type treated as an array or object
- multiple custom post type on category page
- How to automatic update date and time when save custom post type
- Custom URL redirect in WP
- Using wp_localize_script to get data from cpt and pass it to maplace-js locations
- Getting Un Wanted Gallery Shortcode In The Page on Loop
- Custon Content within WordPress Loop