diff --git a/helpers/class.PropertyCache.php b/helpers/class.PropertyCache.php index 284282ac2..919bfd064 100755 --- a/helpers/class.PropertyCache.php +++ b/helpers/class.PropertyCache.php @@ -5,22 +5,22 @@ class helpers_PropertyCache /** * Clear property cached data */ - public static function clearCachedValues(Iterator $triples): void + public static function clearCachedValuesByTriples(Iterator $triples): void { foreach ($triples as $triple) { - $property = new \core_kernel_classes_Property($triple->predicate); - $property->clearCachedValues(); + $classProperty = new \core_kernel_classes_Property($triple->predicate); + $classProperty->clearCachedValues(); } } /** * Warmup property cached data */ - public static function warmupCachedValues(Iterator $triples): void + public static function warmupCachedValuesByProperties(array $properties): void { - foreach ($triples as $triple) { - $property = new \core_kernel_classes_Property($triple->predicate); - $property->warmupCachedValues(); + foreach ($properties as $property) { + $classProperty = new \core_kernel_classes_Property($property); + $classProperty->warmupCachedValues(); } } }