The wp_posts
table has a post_content_filtered
column that plugins can use to cache expensive post content filters. The idea is that when you display the page, you don’t read post_content
but you read post_content_filtered
. This is nice, but it won’t solve your search problem because WordPress by default only looks at post_content
and post_title
.
You can however do it the other way around: store the editor content in post_content_filtered
and the rendered page in post_content
(update it periodically with a cron job). There are filters that are called before the post is edited, you can use them to pass post_content_filtered
instead of post_content
to the editor. So the user will see no difference, but the performance and the search experience will be improved.
Related Posts:
- How do I improve this admin query snippet to avoid generating duplicate results on non-meta searches?
- Is get_option() faster than accessing get_transient()?
- Best practices for using the transients API
- Trouble with Transient API when W3TC is activated [closed]
- Displaying search results in the widget itself?
- How can I free up the memory used by update_post_meta?
- How can I render shortcode so that its not cached by Caching plugins?
- Does WordPress’s HTTP API use any caching?
- Will cron job run if page loaded is being served from cache?
- Is using WP Transients to save external data for a plugin the best/right way?
- Cache directory needed for plugin
- Clearing cached plugin data if it is using an external object cache
- Make WordPress cache permanent for some pages until edited
- Will setcookie work if there is a cache plugin installed?
- Maximum lifetime for nonce
- Clearing caches on plugin uninstall
- How to implement filesystem cache in WordPress
- modify wordpress default search
- what are the checksums surrounding keywords in the SQL generated by WP_Query and do I need to use them too?
- Search the product by tag or category not working
- Search and Filter
- Is using custom table to suit business needs instead of transients a big hit to page load speed?
- Caching the_content calls
- Using ob_get_content to get_search_form puts into infinite loop
- How can I replace the search results displayed by WordPress?
- Service Worker Uncaught (in promise) DOMException
- Should I use wp-content/cache or [PLUGIN_DIR]/cache?
- I need to refresh page to display wp_get_current_user() : why?
- How can I control if post updated
- Showing results from json-string in WordPress search results page
- Ajax action has 200 status but response of No response data available for this request
- Undefined cache functions in my custom plugin
- ajax stopped working when not logged in wordpress
- Get search result count in plugin
- Generate Static Page to Show Search Results/Detail for API
- Is it possible to restore an expired transient?
- Modify search form with plugin
- WP Query Relations / Compare
- WordPress Search Form with Keyword Suggestion
- Simple Search Plugin Does Not Perform Search
- How to search on the field that stores escaped strings?
- Plugin files not updated (cache cleared)
- Change the search results header from plugin
- How to create a custom search form and handler?
- Get custom wp_query search results to appear on search.php
- Why is WordPress wrapping search for users that looks like integers with asterisks and how do I fix it?
- Does WP REST API cache internally executed (rest_do_request) requests?
- Hook a search form anywhere on the site, using a custom plugin
- WP 3.3 How to Add Menu Items to the Admin Bar?
- Unit tests – Dealing with dependencies
- Should I create a theme or a plugin?
- How should you hook a session_start() when authoring a plugin?
- Which to use to execute code during the saving of a plugin settings page?
- How to get vim to autocomplete WordPress API functions?
- How do I make specific plugin functionality apply to different sites in a network?
- What is a settings group actually for?
- The changes I make to an external JS file of my WP plugin are only applied after I clear my browser’s cache
- How to add multiple copies of a widget from “available widgets”
- How do I approach removing menu items on the fly based on settings in my plugin?
- Can I use core’s “or Link to Existing Content” feature in my plugin?
- Plugin with specific admin menu icon
- Should I always prefer esc_attr_e & esc_html_e instead of _e?
- Can WordPress Plugin Directory Cache Delay the Upload of Images?
- using new WP_Query in save_post function alters $post
- Preview Changes button missing on custom post type page since updating to 3.4
- WP_Editor – Saving Value into Plugin Option – Stripping HTML
- How To Consistently Enforce Rewrite Rule in Plugin Development
- Warning: Cannot modify header information – How to resolve this issue? [closed]
- $paged always 0 on plugin’s custom page
- Is there a way in which I can compare product id with the order id to display content on front end before placing the order? [closed]
- Video Security just like facebook [closed]
- Link Pop-up in custom plugin
- How to handle shortcodes through plugin
- Setting up Version Control for WordPress plugin development
- Ajax submit result opens in admin-ajax.php
- WordPress debug messages not displaying
- Error passing post_content to function
- PHP File_exist() not working – Checking if File Exist in WordPress Theme Directory
- Add a check box in Menu Settings
- Is there any way to fire heartbeat API from for website visitors?
- Using init hook for register_taxonomy is causing invalid_taxonomy in wp_insert_term()
- Cannot stop wpautop from messing up my plug-in output
- How can I prevent ‘500 internal server error’ because of a long install process?
- Displaying custom content from a plugin within the active theme
- Custom plugin & calling REST api of wordpress instance the plugins is running on
- Add variables from rewrite rules to query var
- Show list of categories that has posts with different taxonomies
- “add to cart” links css class “ajax_add_to_cart” doesn’t show in woocommerce in widget sidebar
- How do I specify where to save the debug.log?
- What is the source of the $post_id in a hook argument?
- WordPress Fatal error: Uncaught Error: Call to undefined function dbDelta()
- Code for cron to delete posts that contain specific expression (e.g. “unable to fetch” every 30 minutes
- How to fetch the post content from the wordpress editor before it can be saved(published)?
- pull data from wordpress database
- How does one set cookies in WordPress without getting the ‘headers not sent’ error? within WP
- Filter the_content() to add custom figure tags
- Glyphicons Dont Show in WordPress Plugin Only
- Add query string variables to all hyperlinks URL matching a specified domain
- Virtual Page with Registration form
- Is there such a thing as a WordPress console?