Jump to content
xilopaint

Caching search results

Recommended Posts

Let's say I set a 1h lifetime to the cache. During this time all queries and results are cached. Each time a query is repeated the results are retrieved from cache. After the expiration, the cache is cleared and the process should be repeated.

 

It turns out I'm pretty sure this is not the best way, so this thread.

Edited by xilopaint

Share this post


Link to post

I don’t follow you. What’s wrong with that way?

 

It’s impossible to say anything concrete without an example. It’s fine to cache some things for an hour. Others for only a few minutes, and some not at all.

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...