In the book is written the following: "...used to do clean up *when 
resources expire*. FileEngine uses this to *delete files containing expired 
content*." 
( http://book.cakephp.org/2.0/en/core-libraries/caching.html#CacheEngine::gc 
)

If the content is not expired, the file stay in the cache

Em quarta-feira, 18 de fevereiro de 2015 02:47:29 UTC-4, LDSign escreveu:
>
> Hi
>
> Ive set up a cache config as follow:
>
> Cache::config('file', array(
> 'engine' => 'File',
> 'prefix' => false,
> 'duration' => '+10 minutes',
> 'path' => CACHE . 'files' . DS,
> ));
>
> After writing to this cache config I call
>
> Cache::gc('file');
>
> But this does...nothing :( The files stay in the cache.
>
> Am I missing someting or why does this not work?
>
> Its Cake 2.6.1
>
> Thanks,
> Frank
>

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.

Reply via email to