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

5 years ago

MartyIX
Member | 219
+
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
));

5 years ago

Tomáš Jacík
Member | 142
+
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.