# AG\_WEBCACHE
> [HTML Version](ag_webcache.htm)
_Reviewed and revised December 2023_
**tab(-10, AG\_WEBCACHE); opcode \{,flags ,url\}; chr(127);** [Tab(-10,x) Syntax Notes](ag_xxx_syntax-notes.htm.md)
AG\_WEBCACHE (108) gets/sets webcache options from host.
This function has both a [subroutine and a print tab implementation](subroutine-print-pairs.htm.md).
**Parameters**
_opcode_
0 (MXOP\_GET) to retrieve and 1 (MXOP\_SET) to set. On retrieval, the returned string will contain "flags,url" (current webcache flags and repo url).
_flags_
is a decimal number containing the WCDF\_xxx flags
_url_
if specified, is the web directory for the repository.
**Response:**
For _opcode_ 0, none. For _opcode_ 1:
_flags, url_ CR
**Example**
? tab(-10,AG\_WEBCACHE);"1,";(WCDF\_ENABLE or WCDF\_ALL); ",http://www.myrepo.com/app1";chr(127); \! enable; set repo
? tab(-10,AG\_WEBCACHE);"1,0";chr(127); \! disable
? tab(-10,AG\_WEBCACHE);"0";chr(127); \! retrieve
? tab(-10,AG\_WEBCACHE);chr(127); \! same (retrieve)
input line, response\$ \! input flags,url
**See Also**
• [MX\_WEBCACHE](mx_webcache.htm.md)[xs](keyword-types.htm.md)
**History**
2016 October, A-Shell 6.3.1529 and 1531: [WEBCACHE](webcache.htm.md)[xs](keyword-types.htm.md) function added to A-Shell.