Ticket #458 (assigned task)

Opened 2 years ago

Last modified 2 years ago

[Metadata] Dublin Core & QDC - caching

Reported by: MC-arjen Owned by: peter
Priority: major Milestone: WLE modules into D6
Component: Core Version:
Keywords: Cc:
MoSCoW: Must Have Estimated time after impact analysis:
Related to project: none Tested: no
Accepted: no Estimated Hours: 0

Description

In relation to #417

There also should be a caching mechanisme to keep the fields in Drupal and in MM in sync because in MM they can be changed by OAI, FTP etc.

Caching: We want rest call caching in the nodes. Cache every "/asset/{id} [REST]" with drupal cache: cache_get() and cache_set(). Every Node update should update the node rest cache.

cache invalidator: Assets can be updated in MediaMosa (not in Drupal), to make sure the content in Drupal is correct we need a cache validator cron job (hook_cron). Every time it runs, it should do a "/asset [GET]" search call with the last updated date, to get the assets which might have been updated. These assets must be
re-retrieved.

Change History

Changed 2 years ago by forgacs

  • owner changed from dpovshed to peter
  • status changed from new to assigned

The synchronization is ready. It was implemented in the hook_cron(). It creates new nodes, if an asset doesn't have node yet. Otherwise it updates the metadata fields of node.

Note: See TracTickets for help on using tickets.