Skip to content

Commit 9bfe06c

Browse files
authored
files.php
I think, those two lines are not needed if the value has already been set and not null.
1 parent 2bc552d commit 9bfe06c

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

docs/examples/files.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,9 @@
4848
echo $CachedString->get();
4949

5050
} else {
51-
$CachedString->set("Files Cache --> Cache Enabled --> Well done !");
52-
$InstanceCache->save($CachedString);
53-
5451
echo "READ FROM CACHE // ";
5552
echo "\n EXPIRATION DATE: " . $CachedString->getExpirationDate()->format(DateTime::W3C);
5653
echo $CachedString->get();
5754
}
5855

59-
echo '<br /><br /><a href="/">Back to index</a>&nbsp;--&nbsp;<a href="./' . basename(__FILE__) . '">Reload</a>';
56+
echo '<br /><br /><a href="/">Back to index</a>&nbsp;--&nbsp;<a href="./' . basename(__FILE__) . '">Reload</a>';

0 commit comments

Comments
 (0)