Skip to content

Store persistent metadata for a data item #63

Description

@simonrjones

Purpose is to cache metadata about page URLs on the frontend, in order to enable other functionality such as:

  • Return how to get data for current page (useful for pages with any URL)
  • Return frontend URL for an item in the CMS (e.g. WordPress)
  • Initial API skeleton, which we can then add functionality to clear cache for a page, link to view page in CMS, preview page in CMS
  • Generate breadcrumb for current page
  • Generate Google Sitemap
  • Generate RSS feeds (need to use GUID which does not change for RSS feeds)

Work

  • Iterate through all routes (list pages & single pages), build page URLs
  • Save metadata to local DB cache
    • URL
    • Page title
    • Data source (wordpress, rest)
    • Data source ID (e.g. CMS ID)
    • Cache keys used to generate page (so we can clear cache)
  • Build PHP API to query DB cache
  • Build REST API to query DB cache (api/v1/site/*)
  • Add auth layer (auth tokens) to access data
  • CLI command to build site cache

Look at storing this in SQLite.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions