# <cfobjectcache>

Flushes an object cache or returns the current size.

This tag **cannot** have a body.
This tag is also supported within [<cfscript>](script.md)

```
<cfobjectcache
    action=clear|size
    type=function|include|object|query|resource|template
    filter=object
    filterIgnoreCase=string
    result=string
>
```

# Attributes

| Attribute | Type | Required | Description | Default |
|-----------|------|----------|-------------|---------|
| action | string | No | - clear - size | clear |
| type | string | No | cache type to manipulate - function - include - object - query - resource - template | query |
| filter | object | No | filter for the elements to delete |  |
| filterIgnoreCase | string | No | filter for the elements to delete |  |
| result | string | No | name for variables for action size |  |

# Examples

### Syntax

```cfml
<cfobjectcache action="size" type="query" result="queryAppCache"/>
```








# Categories

[Cache](../../categories/cache.md), [Objects](../../categories/object.md), [Lucee Server related Tags, Functions and Guides](../../categories/server.md)