Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ability to re-cache CMS page URLs #7

Closed
aligent-lturner opened this issue Jun 28, 2022 · 2 comments
Closed

Add ability to re-cache CMS page URLs #7

aligent-lturner opened this issue Jun 28, 2022 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@aligent-lturner
Copy link
Collaborator

We should add the ability to re-cache CMS page URLs.

  • Must
    • Re-cache URL when the CMS page is updated
  • Should
    • Re-cache URL when a block within the page is updated
  • Could
    • Re-cache URL when the content of a product widget within the page is updated
    • Re-cache URL when the content of a product widget within a block on the page is updated
@aligent-lturner aligent-lturner added the enhancement New feature or request label Jun 28, 2022
@aligent-lturner aligent-lturner self-assigned this Jun 28, 2022
@aligent-lturner
Copy link
Collaborator Author

Regarding product widgets - these end up in the CMS page content in the form:

{{widget type="Magento\CatalogWidget\Block\Product\ProductsList" ... condition_option="X" condition_option_value="Y" ... conditions_encoded="Z" ... }}

Where:

  • "X" is one of sku, category_ids or condition
  • "Y" is either a comma-separated list of skus, a comma-separated list of category ids or empty, depending on the value of X
  • "Z" is populated with a list of custom conditions when X is condition

In the case of sku and category_ids conditions, we would be able to use preg_match to extract the skus or category ids that should result in the CMS page being updated. The condition case is much more complicated, and will likely be ignored as part of this issue, but could potentially be added at a later time.

@aligent-lturner
Copy link
Collaborator Author

Moving issue to fork aligent#4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant