Cache more metadatas values

This commit is contained in:
Romain Neutron
2012-06-06 17:46:44 +02:00
parent b5f3a8f5ce
commit 1efeb40a96
2 changed files with 94 additions and 19 deletions

View File

@@ -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;
}