Skip to content

Commit

Permalink
move ruleset assignments to plone.restapi
Browse files Browse the repository at this point in the history
  • Loading branch information
jensens committed May 6, 2022
1 parent 0dc71eb commit 5a7a23b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 41 deletions.
41 changes: 0 additions & 41 deletions plone/app/caching/caching.zcml
Original file line number Diff line number Diff line change
Expand Up @@ -133,47 +133,6 @@
ruleset="plone.content.file"
/>

<!-- plone.restapi content -->
<configure zcml:condition="installed plone.restapi">

<include package="plone.restapi" />

<cache:ruleset
for="plone.restapi.services.discussion.conversation.CommentsGet"
ruleset="plone.content.itemView"
/>

<cache:ruleset
for="plone.restapi.services.actions.get.ActionsGet"
ruleset="plone.content.dynamic"
/>
<cache:ruleset
for="plone.restapi.services.breadcrumbs.get.BreadcrumbsGet"
ruleset="plone.content.dynamic"
/>
<cache:ruleset
for="plone.restapi.services.content.get.ContentGet"
ruleset="plone.content.dynamic"
/>
<cache:ruleset
for="plone.restapi.services.multilingual.pam.TranslationInfo"
ruleset="plone.content.dynamic"
/>
<cache:ruleset
for="plone.restapi.services.navigation.get.NavigationGet"
ruleset="plone.content.dynamic"
/>
<cache:ruleset
for="plone.restapi.services.querystring.get.QuerystringGet"
ruleset="plone.content.dynamic"
/>
<cache:ruleset
for="plone.restapi.services.search.get.SearchGet"
ruleset="plone.content.dynamic"
/>

</configure>

<!-- Paths to purge -->

<!-- Standard CMF content -->
Expand Down
3 changes: 3 additions & 0 deletions plone/app/caching/configure.zcml
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
<configure
xmlns="http://namespaces.zope.org/zope"
xmlns:zcml="http://namespaces.zope.org/zcml"
xmlns:meta="http://namespaces.zope.org/meta"
i18n_domain="plone"
>

<meta:provides feature="plone-app-caching-3" />

<include
package="z3c.zcmlhook"
file="meta.zcml"
Expand Down

0 comments on commit 5a7a23b

Please sign in to comment.