$conditions parameter in Nette\Caching\Cache::clean
Notice: This thread is very old.
- MartyIX
- Member | 217
Hi,
there is a description of clean() method in the documentation page. However, I think there are two things that may confuse a beginner.
- The clean() method allows to pass no argument. What is the method supposed to do in that case?
- The documentation
page does not mention
Cache::ALL
condition. The Czech documentation page mentions at least that the conditionCache::ALL
exists but without an example.
Have a nice day!
____________________
$cache->clean(array(
Cache::ALL => TRUE
));
- Tomáš Jacík
- Member | 147
Also
$cache->clean(array(
Cache::ALL => TRUE
));
erases whole cache, not only namespace. Earlier mentioned here: https://forum.nette.org/…ze-namespace
I consider this as a bug.