src/Comodojo/Cache/Drivers/FilesystemGhost.php 1 location
|
@@ 66-70 (lines=5) @@
|
| 63 |
|
$cacheFile = $this->cache_folder."$key-$namespace.cache"; |
| 64 |
|
$cacheGhost = $this->cache_folder."$key-$namespace.expire"; |
| 65 |
|
|
| 66 |
|
if ( $ttl == null || $ttl == 0 ) { |
| 67 |
|
$ttl = 0; |
| 68 |
|
} else { |
| 69 |
|
$ttl = time() + intval($ttl); |
| 70 |
|
} |
| 71 |
|
|
| 72 |
|
$cached = @file_put_contents($cacheFile, $value, LOCK_EX); |
| 73 |
|
|
src/Comodojo/Cache/Drivers/FilesystemXattr.php 1 location
|
@@ 65-69 (lines=5) @@
|
| 62 |
|
|
| 63 |
|
$cacheFile = $this->cache_folder."$key-$namespace.cache"; |
| 64 |
|
|
| 65 |
|
if ( $ttl == null || $ttl == 0 ) { |
| 66 |
|
$ttl = 0; |
| 67 |
|
} else { |
| 68 |
|
$ttl = time() + intval($ttl); |
| 69 |
|
} |
| 70 |
|
|
| 71 |
|
$cached = @file_put_contents($cacheFile, $value, LOCK_EX); |
| 72 |
|
|