lib/scrivito/content_state.rb in scrivito_sdk-0.17.0 vs lib/scrivito/content_state.rb in scrivito_sdk-0.18.0

- old
+ new

@@ -46,9 +46,17 @@ # Cache key is build from given index and key. def find_obj_data(index, key) CmsCacheStorage.read_obj_data(content_state_id, index, key) end + def save_obj_classes_data(data) + CmsCacheStorage.write_obj_classes_data(content_state_id, data) + end + + def find_obj_classes_data + CmsCacheStorage.read_obj_classes_data(content_state_id) + end + # Fetches and caches the ancestor. # Returns nil if there is no ancestor. def from_content_state @from_content_state ||= self.class.find(from_content_state_id) end