Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Z
zimbra-admin-api-js
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Public
zimbra-admin-api-js
Commits
22a97357
Commit
22a97357
authored
Jul 14, 2016
by
Patricio Bruna
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added Flush Cache
parent
a48fc7d0
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
0 deletions
+22
-0
index.js
src/index.js
+22
-0
No files found.
src/index.js
View file @
22a97357
...
...
@@ -285,6 +285,28 @@ class ZimbraAdminApi {
return
this
.
performRequest
(
request_data
);
}
// flushData = {
// type: Comma separated list of cache types. e.g. from skin|locale|account|cos|domain|server|zimlet,
// allServers: 0|1,
// entry: Name or Id of the object, should be relevant to type
// }
flushCache
(
flushData
=
{},
callback
)
{
const
request_data
=
this
.
buildRequestData
(
'FlushCache'
,
callback
);
request_data
.
parse_response
=
ResponseParser
.
emptyResponse
;
request_data
.
params
.
params
=
{
cache
:
{
type
:
flushData
.
type
,
allServers
:
(
flushData
.
allServers
||
0
),
'_content'
:
{
entry
:
{
}
}
}
};
if
(
flushData
.
entry
)
request_data
.
params
.
params
.
cache
.
_content
.
entry
=
{
'by'
:
this
.
dictionary
.
byIdOrName
(
flushData
.
entry
),
'_content'
:
flushData
.
entry
}
return
this
.
performRequest
(
request_data
);
}
getAccount
(
identifier
,
callback
)
{
return
this
.
get
(
'Account'
,
identifier
,
callback
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment