init without trunk
This commit is contained in:
parent
ed24ac4994
commit
bb809e7233
14652 changed files with 177862 additions and 94817 deletions
14
vendor/gregwar/cache/Gregwar/Cache/demo/garbage.php
vendored
Normal file
14
vendor/gregwar/cache/Gregwar/Cache/demo/garbage.php
vendored
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
<?php
|
||||
|
||||
include('../autoload.php'); // If using composer
|
||||
|
||||
use Gregwar\Cache\GarbageCollect;
|
||||
|
||||
if (!is_dir('cache')) {
|
||||
`mkdir cache`;
|
||||
}
|
||||
`touch -t 9901010101 cache/foo`;
|
||||
`touch cache/bar`;
|
||||
|
||||
GarbageCollect::dropOldFiles(__DIR__.'/cache', 30, true);
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue