This section allows you to control how Osclass logs and retains visitors’ search queries. By keeping track of these terms, you can analyze which keywords users are entering into your site, and potentially optimize content or category structures based on popular searches.
Regularly check your database and number of latest searches. If your table has more than 10000 records, we recommend to cleanup this table as excesive number of records may cause slower performance on your site!
Saving the Latest User Searches
Latest searches: When enabled, Osclass stores each user’s search terms. This can be beneficial for understanding user behavior and identifying popular or trending keywords.
Data Volume: Storing searches can generate a large amount of data, especially on active sites. Periodic purging (removing old queries) is recommended to keep your database from growing excessively.
Latest searches management
Duration & Storage Limit
How long queries are stored: Choose from options like One hour, One day, One week, One month, One year, or Forever. This defines the maximum age of a search query in the database before it’s deleted automatically.
Store 1000 queries: Optionally limit how many total queries are retained (e.g., 1,000). This sets an upper bound on the total rows stored. Once the limit is reached, older queries are removed as new ones are inserted.
This feature can generate a lot of data: For high-traffic sites, even a daily or weekly retention policy can accumulate thousands of entries quickly. Monitoring your database size and performing manual or automated purges is crucial.
Words Restriction Settings
These options help you customize how certain words in search queries are processed or filtered.
Restrict mode: If set to Use as whitelisted words, the system will handle searches so that only the words you specify are kept or recognized. Any term not on the list is discarded or ignored. (Alternatively, the feature might allow “blacklisting” depending on your site’s configuration or plugin logic.)
Restricted words: A comma-delimited list (e.g., hello,world,doma,kamo,kam,yes,fuck,dig) specifying words to either include or exclude, based on your restrict mode. Words are not case sensitive, but extra whitespace can affect matching. For example, "hello" is treated the same as "Hello" but might differ from " hello " if space characters matter.
After adjusting these settings, click Save changes to apply them. Be aware of how frequent queries are on your site and adjust retention periods or maximum storage accordingly to maintain optimal performance. Consider regularly checking your database size to ensure you aren’t storing an excessive volume of search terms over time.