Last change
on this file since 3296 was
3296,
checked in by fenix, 13 years ago
|
Load Products.CacheSetup?-1.2.1 into vendor/Products.CacheSetup?/current.
|
-
Property svn:eol-style set to
native
|
File size:
506 bytes
|
Line | |
---|
1 | ## Script (Python) "page_cache_purge" |
---|
2 | ##title=Edit content |
---|
3 | ##bind container=container |
---|
4 | ##bind context=context |
---|
5 | ##bind namespace= |
---|
6 | ##bind script=script |
---|
7 | ##bind state=state |
---|
8 | ##bind subpath=traverse_subpath |
---|
9 | ##parameters= |
---|
10 | ## |
---|
11 | |
---|
12 | context.manage_purgePageCache() |
---|
13 | try: |
---|
14 | from Products.CMFPlone import PloneMessageFactory as _ |
---|
15 | context.plone_utils.addPortalMessage(_(u'PageCache was purged.')) |
---|
16 | except: |
---|
17 | # we're not in 2.5 |
---|
18 | state.set(status='success', portal_status_message='PageCache was purged.') |
---|
19 | return state |
---|
Note: See
TracBrowser
for help on using the repository browser.