Hello,
I am working on a search page that uses the Yahoo! search API to find results for the search on the site's domain. So the problem is that I'm getting a bunch of:
"Warning: unserialize() [function.unserialize]: Node no longer exists in ... " messages because of this line:
$cache = $this->cache->load($request->domain . '_' . $query . $request->params['page']);
where the domain is the domain of the site, $query is the string entered into the search box (the search term(s) ), and the params['page'] is the page number (I'm guessing, don't really understand what this page part is necessary for).
If I comment out the $request ->params['page'] then the warnings go away...but I don't know if it's even checking the cache and using it if its there instead of doing a new search.
code:
$cache = $this->cache->load($request->domain . '_' . $query . $request->params['page']);
if (isset($cache)) {return $cache; } // instead of doing a new search, use cache of past one
Anyone know how I could get this working right....and if the page part is even necessary/what it's for?
Thanks!