mirror of
https://github.com/billz/raspap-webgui.git
synced 2023-10-10 13:37:24 +02:00
Fix warning: check for RASPI_CACHE_PATH
This commit is contained in:
parent
bdafa8dfbd
commit
3d2d608477
@ -492,9 +492,11 @@ function readCache($key)
|
|||||||
|
|
||||||
function writeCache($key, $data)
|
function writeCache($key, $data)
|
||||||
{
|
{
|
||||||
mkdir(RASPI_CACHE_PATH, 0777, true);
|
if (!file_exists(RASPI_CACHE_PATH)) {
|
||||||
$cacheKey = expandCacheKey($key);
|
mkdir(RASPI_CACHE_PATH, 0777, true);
|
||||||
file_put_contents($cacheKey, $data);
|
$cacheKey = expandCacheKey($key);
|
||||||
|
file_put_contents($cacheKey, $data);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function deleteCache($key)
|
function deleteCache($key)
|
||||||
|
Loading…
Reference in New Issue
Block a user