Skip to content

Instantly share code, notes, and snippets.

@xnau
Created April 12, 2023 04:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xnau/c771be69367ee6d364941f1a4971c1b2 to your computer and use it in GitHub Desktop.
Save xnau/c771be69367ee6d364941f1a4971c1b2 to your computer and use it in GitHub Desktop.
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