Skip to content

Multi-site single-panel setup #39

@intellent

Description

@intellent

I wonder if it is possible for staticache to support a multi-site, single-panel setup.

My setup is as follows:

  • panel.mysite.com: Panel only
  • site1.com: First site
  • site2.com: Second site

If I enable staticache for site1.com and site2.com the pages a cached correctly inside their respective cache directories:

  • static/site1.com/pages
  • static/site2.com/pages

However, once I update a page in the panel, the cache is not cleared. Which makes sense, since the panel clears the cache directory for its own domain static/panel.mysite.com/pages and doesn’t know anything about the other two cache locations.

So I wonder if there is a way for me to set the cache prefix dynamically to the proper site based on the current page object that has been modified in the panel.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions