mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-16 14:33:14 +00:00
Fix #166 : empty cache on subdef generation
This commit is contained in:
@@ -1669,14 +1669,11 @@ class record_adapter implements record_Interface, cache_cacheableInterface
|
||||
echo $e->getMessage() . "\n";
|
||||
}
|
||||
|
||||
if (!array_key_exists($subdefname, $record_subdefs))
|
||||
if (array_key_exists($subdefname, $record_subdefs))
|
||||
{
|
||||
continue;
|
||||
$record_subdefs[$subdefname]->delete_data_from_cache();
|
||||
}
|
||||
|
||||
$record_subdefs[$subdefname]->delete_data_from_cache();
|
||||
|
||||
$this->delete_data_from_cache(self::CACHE_SUBDEFS);
|
||||
try
|
||||
{
|
||||
$subdef = $this->get_subdef($subdefname);
|
||||
|
Reference in New Issue
Block a user