API Reference - Universal Search Cache

Link: https://support.brilliantdirectories.com/support/solutions/articles/12000108127

← Back to API Reference | Getting Started

Universal Search Cache

The Universal Search Cache table stores temporary results from admin-side universal search queries, keyed by a hash of the search parameters, admin ID, and website ID. Cache entries expire after a set duration and are used to improve performance for repeated searches within an admin session. This is an internal system cache table; it is not exposed through standard CRUD API endpoints and should be treated as read-only.

Model name in URL: universal_search_cache — DB table: universal_search_cache
Note: The universal_search_cache model is not available through the standard API endpoints. Attempts to query this model via the API will return a 400 error. The schema is documented here for reference only.

The Universal Search Cache Object

FieldTypeDescription
cache_idstringMD5 hash used as the cache key (primary key component); max 32 characters
search_querystringThe search query string that generated this cache entry; max 500 characters
results_jsontextJSON-encoded search results stored in the cache
admin_idstringIdentifier of the admin user who performed the search (primary key component); max 50 characters
website_idstringWebsite ID the search was performed on (primary key component); max 50 characters
expires_datedatetimeDatetime when this cache entry expires and becomes invalid
created_datetimestampDatetime when this cache entry was created (auto-set on insert)