url-cache


Cache responses to URL Filtering requests to the Websense server. (Configuration mode.)

[no] url-cache dst | src_dst size

clear url-cache

show url-cache stat


Syntax

dst

Cache entries based on the URL destination address. Select this mode if all users share the same URL filtering policy on the Websense server.

src_dst

Cache entries based on the both the source address initiating the URL request as well as the URL destination address. Select this mode if users do not share the same URL filtering policy on the Websense server.

size

Specify a value for the cache size within the range 1 to 128 KB.

stat

Use the stat option to display additional URL cache statistics, including the number of cache lookups and hit rate.


Usage Guidelines

The url-cache command caches responses to URL filtering requests to the Websense server. Caching stores URL access privileges in memory on the firewall. When a host requests a connection, the firewall first looks in the URL cache for matching access privileges instead of forwarding the request to the Websense server. Disable caching with the no url-cache command. The clear url-cache command removes url-cache command statements from the configuration.

Access to the URL cache does not update the Websense accounting logs. Before using this command, let Websense run to accumulate logs to let you view Websense accounting information. After you get a usage profile that meets the security needs, enable this command to increase throughput.

If you change settings on the Websense server, disable the cache with the no url-cache command and then re-enable the cache with the url-cache command.

The url-cache command allows you to enable URL caching, set the size of the cache, and displays cache statistics. The show url-cache command with the stats option displays the following entries:

Size The size of the cache in kilobytes, set with the url-cache size option.
Entries The maximum number of cache entries based on the cache size.
In Use The current number of entries in the cache.
Lookups The number of times the firewall has looked for a cache entry.
Hits The number of times the firewall has found an entry in the cache.

You can view additional information about Websense access with the show perfmon command.


Examples

The following example caches all outbound HTTP connections based on the source and destination addresses:

    url-cache src_dst 128

The following is sample output from the show url-cache stat command:

    show url-cache stat

    URL Filter Cache Stats
    ----------------------
        Size : 1KB
     Entries : 36
    In Use : 30
     Lookups : 300
        Hits : 290