mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-10 03:23:19 +00:00
Cache more metadatas values
This commit is contained in:
@@ -183,6 +183,9 @@ class caption_Field_Value implements cache_cacheableInterface
|
||||
$stmt->execute(array(':id' => $this->id));
|
||||
$stmt->closeCursor();
|
||||
|
||||
$this->delete_data_from_cache();
|
||||
$this->databox_field->delete_data_from_cache();
|
||||
|
||||
$sbas_id = $this->record->get_sbas_id();
|
||||
$this->record->get_caption()->delete_data_from_cache();
|
||||
|
||||
@@ -224,6 +227,8 @@ class caption_Field_Value implements cache_cacheableInterface
|
||||
|
||||
$this->VocabularyId = $this->VocabularyType = null;
|
||||
|
||||
$this->delete_data_from_cache();
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
@@ -266,6 +271,8 @@ class caption_Field_Value implements cache_cacheableInterface
|
||||
$stmt_up->execute($params);
|
||||
$stmt_up->closeCursor();
|
||||
|
||||
$this->delete_data_from_cache();
|
||||
|
||||
try {
|
||||
$registry = registry::get_instance();
|
||||
$sphinx_rt = sphinxrt::get_instance($registry);
|
||||
@@ -399,6 +406,7 @@ class caption_Field_Value implements cache_cacheableInterface
|
||||
$caption_field_value->update_cache_value($value);
|
||||
|
||||
$record->get_caption()->delete_data_from_cache();
|
||||
$this->databox_field->delete_data_from_cache();
|
||||
|
||||
return $caption_field_value;
|
||||
}
|
||||
|
Reference in New Issue
Block a user