$conditions parameter in Nette\Caching\Cache::clean

Notice: This thread is very old.
MartyIX
Member | 217
+
0
-

Hi,

there is a description of clean() method in the documentation page. However, I think there are two things that may confuse a beginner.

  1. The clean() method allows to pass no argument. What is the method supposed to do in that case?
  2. The documentation page does not mention Cache::ALL condition. The Czech documentation page mentions at least that the condition Cache::ALL exists but without an example.

Have a nice day!

____________________

$cache->clean(array(
    Cache::ALL => TRUE
));
Tomáš Jacík
Member | 147
+
0
-

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.