Skip to content
This repository was archived by the owner on Sep 3, 2026. It is now read-only.

WIP: Http multi-tagging signal slots - #1897

Closed
bdunogier wants to merge 4 commits into
feature-http_cache_multi_taggingfrom
http_cache_slots
Closed

bdunogier wants to merge 4 commits into
feature-http_cache_multi_taggingfrom
http_cache_slots

Conversation

@bdunogier

@bdunogier bdunogier commented Jan 26, 2017 •

Copy link
Copy Markdown
Contributor

Extracted from #1772
Part of EZP-22401

Adds tagging support to HttpCache Signal Slots. Each signal will send a purge request with the list of tags matching the operation it is registered for.

The main difference with #1772 is the removal of purgeByTags() in favor of purge().

TODO

  • Squash once reviewed
  • change of ownership

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If service declaration is abstract, you don't need to set a class as it will never be instanciate
(working ex: https://github.com/prestaconcept/PrestaCMSCoreBundle/blob/master/Resources/config/block.xml#L18)


*Clearing*: When a operation is specifically affecting parent location(s), on tree operations `path` is more relevant.

- `path-<path-location-id>`

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we'll need to expand here, and maybe update doc to reflect the code.

Side, we could also consider aligning with (one or the other way): https://github.com/ezsystems/ezpublish-kernel/compare/sf_cache#diff-e7db5fd1ab0e388fd87f6a8095599e22R277 and https://github.com/ezsystems/ezpublish-kernel/compare/sf_cache#diff-fb693bf163e578a01367f4466a44ad9bR316

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can align. I'll have a look.

@bdunogier bdunogier Jan 31, 2017 •

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here is the list of tags I have extracted from the diff:

content-<contentId>
content-fields-<contentId>
content-fields-type-<typeId>
language-<id>
location-<locationId>
location-path-<locationId>
policy-<policyId>
role-<roleId>
role-assignment-<roleAssignmentId>
role-assignment-group-list-<contentId>
role-assignment-role-list-<roleId>
section-<sectionId>
state-<stateId>
state-group-<groupId>
type-group-<groupId>
type-map
type-<typeId>
urlAlias-location-<locationId>
urlAlias-global-<languageCode>

@andrerom andrerom Jan 31, 2017 •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That is correct, so

  • are you ok with the naming convention? with domain first?
  • shortened type to not make look like it is specifically content domain, even if they all are in a way.
  • some here are very specific for persistence cache, like content-fields, role-assignment-<list>and type-map
  • main difference I guess with what is here now is the use of location-path- over just path-, oh and no use of content-type on content itself, maybe add something like content-of-type-<type-id> instead for that, and I can adapt persistence to use that over content-fields-type-<type-id> actually it fits well on type use as is, type-<id> can be used for type cache, and content-type-<id> can be on the content of given type.

@bdunogier bdunogier changed the title Http multi-tagging signal slots WIP: Http multi-tagging signal slots Jan 31, 2017

@andrerom andrerom left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Besides doc improvements and tweaks that we can do in followup, +1

$tags = [];

if (isset($signal->contentId)) {
// self in all forms (also withouth locations)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typo

@bdunogier

Copy link
Copy Markdown
Contributor Author

Replaced by http://github.com/ezsystems/ezplatform-http-cache. Please do not delete the branch yet.

@bdunogier bdunogier closed this Feb 8, 2017
@alongosz
alongosz deleted the http_cache_slots branch July 2, 2019 13:13
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants