Skip to content

Instantly share code, notes, and snippets.

@xnau
Created April 12, 2023 04:32
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
Shows how to turn off caching of the autocomplete terms in Particinats Database Combo Multisearch
<?php
/**
* Plugin Name: PDB Autosuggest Term Cache Set
* Description: shows how to set the cache time for the Combo Multisearch autrosuggest term list
*
*/
// set the cache time to 1 second, effectively bypassing it
add_filter( 'pdbcms-autosuggest_term_list_expiration', function( $cache_time ) { return 1; } );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment