fix:install more drive will cache only one token
parent
bff00187da
commit
df404519b7
|
@ -3,14 +3,14 @@
|
||||||
function getcache($str)
|
function getcache($str)
|
||||||
{
|
{
|
||||||
$cache = null;
|
$cache = null;
|
||||||
$cache = new \Doctrine\Common\Cache\FilesystemCache(sys_get_temp_dir(), '.Onedrive');
|
$cache = new \Doctrine\Common\Cache\FilesystemCache(sys_get_temp_dir(), __DIR__.'Onedrive');
|
||||||
return $cache->fetch($str);
|
return $cache->fetch($str);
|
||||||
}
|
}
|
||||||
|
|
||||||
function savecache($key, $value, $exp = 3300)
|
function savecache($key, $value, $exp = 3300)
|
||||||
{
|
{
|
||||||
$cache = null;
|
$cache = null;
|
||||||
$cache = new \Doctrine\Common\Cache\FilesystemCache(sys_get_temp_dir(), '.Onedrive');
|
$cache = new \Doctrine\Common\Cache\FilesystemCache(sys_get_temp_dir(), __DIR__.'Onedrive');
|
||||||
$cache->save($key, $value, $exp);
|
$cache->save($key, $value, $exp);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue