Cache the mobilizon query? #1

Open
opened 11 months ago by linos · 1 comments
linos commented 11 months ago
Owner

Maybe use wordpress transients, to cache the requests to moblizon.

Maybe use wordpress transients, to cache the requests to moblizon.
linos changed title from Cache the mobilizon query. to Cache the mobilizon query? 11 months ago
Poster
Owner

Procedure

  • Only query 'uuid' and 'updatedAt' for the events
  • For each event check if transient for uuid-updatedAt combination exists
  • If transient exists: -> get_transient
  • If transient does not exist: -> fetch event by uuid -> update/create transient

Pictures are saved in an extra transient?!

Transient cache time

could be calculated via event endsAt, but only if we never want to display past events, if we do, we could just use an arbitraty value.

# Procedure - Only query 'uuid' and 'updatedAt' for the events - For each event check if transient for uuid-updatedAt combination exists - If transient exists: -> get_transient - If transient does not exist: -> fetch event by uuid -> update/create transient ## Pictures are saved in an extra transient?! ## Transient cache time could be calculated via event endsAt, but only if we never want to display past events, if we do, we could just use an arbitraty value.
Sign in to join this conversation.
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date

No due date set.

Dependencies

This issue currently doesn't have any dependencies.

Loading…
There is no content yet.