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.
universal_search_cache — DB table: universal_search_cacheuniversal_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
| Field | Type | Description |
|---|---|---|
cache_id | string | MD5 hash used as the cache key (primary key component); max 32 characters |
search_query | string | The search query string that generated this cache entry; max 500 characters |
results_json | text | JSON-encoded search results stored in the cache |
admin_id | string | Identifier of the admin user who performed the search (primary key component); max 50 characters |
website_id | string | Website ID the search was performed on (primary key component); max 50 characters |
expires_date | datetime | Datetime when this cache entry expires and becomes invalid |
created_date | timestamp | Datetime when this cache entry was created (auto-set on insert) |
