Difference between revisions of "Pdm webcache"

From SDU
Jump to: navigation, search
(New page: '''pdm_webcache''' is used to initiate a clearing of the web page cache. Service Desk caches webpages to provide a quicker response time. The most common use of this command is without a...)
 
(Undo revision 4165 by Agegeleruvy (Talk))
 
(18 intermediate revisions by 4 users not shown)
Line 1: Line 1:
'''pdm_webcache''' is used to initiate a clearing of the web page cache. Service Desk caches webpages to provide a quicker response time.
+
__NOTOC__
 +
[[Category:Commands]]
 +
{{Global Header}}
 +
{{Global Announcement}}
  
The most common use of this command is without any arguments. Simply run '''pdm_webache -v''' from a command line. In environments with Secondary Servers, running the command from the Primary Server will clear the cache on all Secondary Servers.
+
== Overview ==
 +
This command is used to clear the web page cache. The system maintains a cache to improve system
  
Be careful is executing pdm_webcache -b as this can annoy your users. When using the -b argument, the users will be prompted to clear their browser cache every time they access Service Desk for a 24 hour period. This can be very useful for changes to items that get cached on the client-side, such as javascripts. However, it can be very annoying to users to frequently access Service Desk. In addition, after the 24 hours no additional messages will be generated so users who did not login during this window will not get the prompt. While the concept of the -b argument is good, it's usually not a practical option.
+
== Usage ==
 +
pdm_webcache [-b] [-H] [-f form] [-g fgroup] [-i interface_type] [-m] [-p webengine_process] [-t timeout] [-v] [-h]
 +
<br>
 +
{|
 +
|-
 +
! Command
 +
! Description
 +
! Remarks
 +
|-
 +
| -b
 +
| browser cache. Alert users to update browser cache
 +
| To undo this command, delete a file called browser_refresh.txt then restart services.
 +
|-
 +
| -H
 +
| htmpl cache. Clear [[Webengine|webengine]] HTMPL cache
 +
|
 +
|-
 +
| -f
 +
| Form name. Default is all forms.
 +
|
 +
|-
 +
| -g
 +
| Form group. Default is all [[Form Group|form groups]]
 +
|
 +
|-
 +
| -i
 +
| Interface type. Default is all interface types
 +
|
 +
|-
 +
| -m
 +
| macro cache. Clear [[Webengine|webengine]] macro cache
 +
|
 +
|-
 +
| -p
 +
| Process name of [[Webengine|webengine]] to update. Default is all [[Webengine|webengine]]
 +
|
 +
|-
 +
| -t
 +
| Time out in seconds. Default is 30 seconds.
 +
|
 +
|-
 +
| -v
 +
| Verbose (list all forms deleted from cache)
 +
|
 +
|-
 +
| -h
 +
| help
 +
|
 +
|-
 +
|}
 +
 
 +
The -f, -g, and -i arguments may contain '*' as a wildcard character.
 +
The -H argument is the default if none of the -b, -H, or -m options are specified.
 +
 
 +
When initiated from a [[Primary Server]], the cache of the [[Secondary Server|Secondary Servers]] will be cleared as well, assuming -p was not used.
 +
 
 +
== Examples ==
 +
* To clear all web cache for all domservers
 +
pdm_webcache -v
 +
 
 +
* To clear all web cache for all domservers and prompt users to clear browser cache
 +
pdm_webcache -b
 +
 
 +
* To clear a specific FORM\SCREEN from the cache
 +
pdm_webcache -f detail_cr.htmpl
 +
 
 +
* To clear a specific screen FORM GROUP from the cache
 +
pdm_webcache -g ITIL

Latest revision as of 08:31, 29 November 2010

To make corrections or additions to this article, select the edit tab above.
To discuss or ask questions about this article, select the discussion tab above.

Overview

This command is used to clear the web page cache. The system maintains a cache to improve system

Usage

pdm_webcache [-b] [-H] [-f form] [-g fgroup] [-i interface_type] [-m] [-p webengine_process] [-t timeout] [-v] [-h]

Command Description Remarks
-b browser cache. Alert users to update browser cache To undo this command, delete a file called browser_refresh.txt then restart services.
-H htmpl cache. Clear webengine HTMPL cache
-f Form name. Default is all forms.
-g Form group. Default is all form groups
-i Interface type. Default is all interface types
-m macro cache. Clear webengine macro cache
-p Process name of webengine to update. Default is all webengine
-t Time out in seconds. Default is 30 seconds.
-v Verbose (list all forms deleted from cache)
-h help

The -f, -g, and -i arguments may contain '*' as a wildcard character. The -H argument is the default if none of the -b, -H, or -m options are specified.

When initiated from a Primary Server, the cache of the Secondary Servers will be cleared as well, assuming -p was not used.

Examples

  • To clear all web cache for all domservers
pdm_webcache -v
  • To clear all web cache for all domservers and prompt users to clear browser cache
pdm_webcache -b
  • To clear a specific FORM\SCREEN from the cache
pdm_webcache -f detail_cr.htmpl
  • To clear a specific screen FORM GROUP from the cache
pdm_webcache -g ITIL