How do I handle 3rd party search result data (via cache)

Posted by reikyoushin on Programmers See other posts from Programmers or by reikyoushin
Published on 2013-05-22T20:10:53Z Indexed on 2013/11/13 16:15 UTC
Read the original article Hit count: 481

Filed under:
|
|

I have a search function on my site and it is taking data from 6 different 3rd party resources. The problem is, it takes too long requesting the data over and over again on the results page.

I've read for questions like this on SO about session not being a good choice but for me 'memcache' is not an option, because the server doesn't have memcached installed and I have no way to install it now.

Is there any other approach to do this? Storing in the database seem inappropriate because the data depends on the search terms requested.

What I've been thinking is writing a file on the server that would act as a cache for this file but I don't know how I would know when to delete it after.

© Programmers or respective owner

Related posts about php

Related posts about cache