Shows how to turn off caching of the autocomplete terms in Particinats Database Combo Multisearch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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