Skip to content

Commit f21a337

Browse files
committed
Removed hardcoded paths
1 parent 0e25372 commit f21a337

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

examples/files.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
// Setup File Path on your config files
2424
CacheManager::setDefaultConfig([
25-
"path" => '/var/www/phpfastcache.dev.geolim4.com/geolim4/tmp', // or in windows "C:/tmp/"
25+
"path" => sys_get_temp_dir(),
2626
]);
2727

2828
// In your class, function, you can call the Cache
@@ -39,7 +39,7 @@
3939
if (is_null($CachedString->get())) {
4040
//$CachedString = "Files Cache --> Cache Enabled --> Well done !";
4141
// Write products to Cache in 10 minutes with same keyword
42-
$CachedString->set("Files Cache --> Cache Enabled --> Well done !")->expiresAfter(5);
42+
$CachedString->set("Files Cache --> Cache Enabled --> Well done !");
4343
$InstanceCache->save($CachedString);
4444

4545
echo "FIRST LOAD // WROTE OBJECT TO CACHE // RELOAD THE PAGE AND SEE // ";

examples/sqlite.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
// Setup File Path on your config files
2525
CacheManager::setDefaultConfig([
26-
"path" => '/var/www/phpfastcache.dev.geolim4.com/geolim4/tmp', // or in windows "C:/tmp/"
26+
"path" => sys_get_temp_dir(),
2727
]);
2828

2929
// In your class, function, you can call the Cache

0 commit comments

Comments
 (0)