Title: A Fresher Cache
Author: Zack Tollman
Published: <strong>29 Masg 2012</strong>
Last modified: 01 Luj 2014

---

Search plugins

This plugin **hasn’t been tested with the latest 3 major releases of WordPress**.
It may no longer be maintained or supported and may have compatibility issues when
used with more recent versions of WordPress.

![](https://s.w.org/plugins/geopattern-icon/a-fresher-cache.svg)

# A Fresher Cache

 By [Zack Tollman](https://profiles.wordpress.org/tollmanz/)

[Download](https://downloads.wordpress.org/plugin/a-fresher-cache.0.2.0.zip)

 * [Details](https://lmo.wordpress.org/plugins/a-fresher-cache/#description)
 * [Reviews](https://lmo.wordpress.org/plugins/a-fresher-cache/#reviews)
 *  [Installation](https://lmo.wordpress.org/plugins/a-fresher-cache/#installation)
 * [Development](https://lmo.wordpress.org/plugins/a-fresher-cache/#developers)

 [Support](https://wordpress.org/support/plugin/a-fresher-cache/)

## Description

A Fresher Cache adds an admin bar menu that gives easy access to functions that 
refresh (i.e, regenerate or invalidate)
 cached items. Out of the box, the plugin
provides easy access to refresh items that WordPress Core caches; however, the true
power of the plugin is its API that allows developers to easily add items to the
menu that initiate custom functions that refresh cached items.

For instance, imagine that you wrote a function called “my_update_all_term_caches”
that loops through all of the terms
 in your WordPress install and updates the cache
for each item. You can add this function to the “Freshen” admin bar menu with the
following API call:

    ```
    function my_update_all_term_caches_menu_item() {
        $args = array(
            'id' => 'my-update-all-term-caches',
            'title' => 'Update Term Cache',
            'function' => 'my_update_all_term_caches'
        );

        afc_add_item( $args );
    }
    add_action( 'init', 'my_update_all_term_caches_menu_item' );
    ```

This code will generate a menu item labelled “Update Term Cache” that creates a 
link that will run the function defined
 in the “function” key of the $args array(
in this case, my_update_all_term_caches()).

The primary purpose of this plugin is to provide an easy tool for developers to 
refresh cached items when developing new
 features. Additionally, it can serve as
a convenient tool for users to be able to update cached items when needed.

Note that this is not merely a wrapper for the admin bar API. Rather, it allows 
you to add items to the admin bar and provides
 all of the necessary coding that
will link a callback function to a menu item. You can think of it as an extension
of the admin bar that adds a very specific functionality. The plugin also uses the
admin bar as intended and only adds a few extra arguments that support the functionality
of this plugin.

A more complete tutorial that describes the full functionality of the plugin can
be read at
 [tollmanz.com](http://tollmanz.com/a-fresher-cache-announcement/).

## Screenshots

[⌊After installing the plugin, a new admin bar menu called "Freshen" is added to
the admin bar.⌉⌊After installing the plugin, a new admin bar menu called "Freshen"
is added to the admin bar.⌉[

After installing the plugin, a new admin bar menu called “Freshen” is added to the
admin bar.

[⌊Upon hovering over the "Freshen" item, the registered items are displayed. The
plugin supports parent/child relationships.⌉⌊Upon hovering over the "Freshen" item,
the registered items are displayed. The plugin supports parent/child relationships
.⌉[

Upon hovering over the “Freshen” item, the registered items are displayed. The plugin
supports parent/child relationships.

[⌊You can add your own special, grouped cache refresh items. This screenshot shows
links to items that update cached
tweets from two different Twitter accounts.⌉⌊You
can add your own special, grouped cache refresh items. This screenshot shows links
to items that update cached
tweets from two different Twitter accounts.⌉[

You can add your own special, grouped cache refresh items. This screenshot shows
links to items that update cached tweets from two different Twitter accounts.

[⌊WordPress cache refresh items are built into the plugin and stored under a menu
item called "Core".⌉⌊WordPress cache refresh items are built into the plugin and
stored under a menu item called "Core".⌉[

WordPress cache refresh items are built into the plugin and stored under a menu 
item called “Core”.

## Installation

 1. Upload `a-fresher-cache` folder to the `/wp-content/plugins/` directory
 2. Activate the plugin through the “Plugins” menu in WordPress
 3. See above to start adding custom items to the “Freshen” admin menu item

## FAQ

  I installed the plugin and it really doesn’t do much

Indeed. The plugin, out of the box does very little. It is intended for assisting
a developer’s work. The provided API
 needs to be utilized for this to be truly 
useful plugin.

  If I need to do extra work with this, why haven’t you documented it?

Documentation will soon be posted on [tollmanz.com](http://tollmanz.com/) that will
show you how to use
 the plugin, as well as give an example of the true power of
the plugin.

## Reviews

There are no reviews for this plugin.

## Contributors & Developers

“A Fresher Cache” is open source software. The following people have contributed
to this plugin.

Contributors

 *   [ Zack Tollman ](https://profiles.wordpress.org/tollmanz/)

[Translate “A Fresher Cache” into your language.](https://translate.wordpress.org/projects/wp-plugins/a-fresher-cache)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/a-fresher-cache/), 
check out the [SVN repository](https://plugins.svn.wordpress.org/a-fresher-cache/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/a-fresher-cache/)
by [RSS](https://plugins.trac.wordpress.org/log/a-fresher-cache/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 0.2.0

 * Added methods for flushing update transients

#### 0.1.2

 * Class methods are now valid callbacks
 * Transients can be removed even if using an object cache

#### 0.1.1

 * Functions for removing transients
 * Documentation updates
 * Verified compatibility with 3.4

#### 0.1

 * Initial release

## Meta

 *  Version **0.1.2**
 *  Last updated **12 years ago**
 *  Active installations **10+**
 *  WordPress version ** 3.3 or higher **
 *  Tested up to **3.9.40**
 *  Language
 * [English (US)](https://wordpress.org/plugins/a-fresher-cache/)
 * Tags
 * [admin bar](https://lmo.wordpress.org/plugins/tags/admin-bar/)[cache](https://lmo.wordpress.org/plugins/tags/cache/)
 *  [Advanced View](https://lmo.wordpress.org/plugins/a-fresher-cache/advanced/)

## Ratings

 5 out of 5 stars.

 *  [  1 5-star review     ](https://wordpress.org/support/plugin/a-fresher-cache/reviews/?filter=5)
 *  [  0 4-star reviews     ](https://wordpress.org/support/plugin/a-fresher-cache/reviews/?filter=4)
 *  [  0 3-star reviews     ](https://wordpress.org/support/plugin/a-fresher-cache/reviews/?filter=3)
 *  [  0 2-star reviews     ](https://wordpress.org/support/plugin/a-fresher-cache/reviews/?filter=2)
 *  [  0 1-star reviews     ](https://wordpress.org/support/plugin/a-fresher-cache/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/a-fresher-cache/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/a-fresher-cache/reviews/)

## Contributors

 *   [ Zack Tollman ](https://profiles.wordpress.org/tollmanz/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/a-fresher-cache/)

## Donate

Would you like to support the advancement of this plugin?

 [ Donate to this plugin ](http://tollmanz.com/)