Manages a cache of search results to avoid redundant database queries while keeping memory usage under control.
cache_manage(
operation,
key = NULL,
value = NULL,
max_size = 500,
max_items = 50
)
Varies by operation
Operation to perform ("add", "get", "clear", "status")
Cache key (usually search query)
Value to cache (for "add" operation)
Maximum cache size in MB (default: 500)
Maximum number of items to cache (default: 50)