Revision 33890
Added by Eri Katsari over 9 years ago
restoreCache.php | ||
---|---|---|
51 | 51 |
|
52 | 52 |
//now promote all other entries |
53 | 53 |
$keys = $this->cache->keys("*"); |
54 |
$this->log->info("Restoring data queries..."); |
|
55 |
$this->log->info("*******************************************"); |
|
54 |
|
|
55 |
$this->log->info("Restoring data queries..."); |
|
56 |
$this->log->info("*******************************************"); |
|
56 | 57 |
|
57 | 58 |
for($x=0;$x<count($keys);$x++) { |
58 | 59 |
|
... | ... | |
63 | 64 |
$persistent= $this->cache->hget($keys[$x],'persistent'); |
64 | 65 |
|
65 | 66 |
if(($query!=null)&&($persistent)) |
66 |
|
|
67 | 67 |
{ |
68 | 68 |
|
69 | 69 |
$fetchMode = $this->cache->hget($keys[$x], 'fetchMode'); |
... | ... | |
72 | 72 |
$backup = $this->cache->hget($keys[$x], 'backup'); |
73 | 73 |
|
74 | 74 |
$this->cache->hmset($keys[$x],array("results" =>$backup,"query" =>$query,"persistent" =>$persistent,"shadow" =>$shadowResults,"fetchMode" =>$fetchMode,"backup" =>$backup)); |
75 |
$this->log->info("Restored ".$keys[$x]); |
|
75 | 76 |
|
77 |
|
|
76 | 78 |
} |
77 | 79 |
|
78 | 80 |
}//catch |
Also available in: Unified diff