Title: Appcachify
Author: Robert O'Rourke
Published: <strong>Agẹmọ  24, 2014</strong>
Last modified: Agẹmọ  24, 2014

---

Ṣàwárí àwọn plugin

![](https://ps.w.org/appcachify/assets/banner-772x250.png?rev=954160)

Plugin yìí **kò tíì ṣe àyẹ̀wò pẹ̀lú àwọn ìtújáde mẹ́ta pàtàkì tó kẹ́yìn ti WordPress**.
Ó lè jẹ́ pé a kò tọ́jú tàbí ṣe àtìlẹ́yìn fún un mọ́, ó sì lè ní àwọn ọ̀ràn ìbámu
nígbà tí a bá lò ó pẹ̀lú àwọn ẹ̀yà WordPress tuntun.

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

# Appcachify

 Láti ọwọ́ [Robert OÌtumọ̀ Yorùbá: ’Rourke](https://profiles.wordpress.org/sanchothefat/)

[Ṣe ìgbàsílẹ̀](https://downloads.wordpress.org/plugin/appcachify.zip)

 * [Àwọn àlàyé](https://yor.wordpress.org/plugins/appcachify/#description)
 * [Àwọn àgbéyẹ̀wò](https://yor.wordpress.org/plugins/appcachify/#reviews)
 *  [Ìgbéwọlẹ̀](https://yor.wordpress.org/plugins/appcachify/#installation)
 * [Ìdàgbàsókè](https://yor.wordpress.org/plugins/appcachify/#developers)

 [Ìrànlọ́wọ́](https://wordpress.org/support/plugin/appcachify/)

## Àpèjúwe

The plugin adds an iframe to the footer of your website which points to `example.
com/manifest`.

That URL is an empty page that references the generated manifest file at `example.
com/manifest.appcache`.

The manifest itself is built in the following way:

 1. adds URLs of all queued scripts and styles
 2. searches theme files and folder for any images or other static assets
 3. if a theme has a 307.php template it is used as an offline fallback
 4. a timestamp of the most recently modified file is added to force appcache to refresh

The net result of all this is that your main static files are stored locally on 
your visitors devices. For mobile this greatly helps to improve download and rendering
times.

### Documentation

### Adding items to the manifest

Appcache can do more than store static assets. You could cache entire pages, or 
add fallbacks for when a user is offline.

There are 3 main sections to a manifest:

#### CACHE

The main `CACHE` section is for URLs that should be explicitly cached.

    ```
    <?php
    add_filter( 'appcache_cache', function( $urls ) {
       $urls[] = '/page-available-offline/';
       return $urls;
    } );
    ?>
    ```

#### NETWORK

This section is for specifying URLs that should _never_ be cached.

    ```
    <?php
    add_filter( 'appcache_network', function( $urls ) {
       $urls[] = '*';
       $urls[] = '/online-only-page/';
       return $urls;
    } );
    ?>
    ```

#### FALLBACK

The fallback section allows you to set fallback pages or images if the user is offline.

    ```
    <?php
    add_filter( 'appcache_fallback', function( $patterns ) {
       $patterns[] = 'wp-content/uploads/ wp-content/uploads/offline.jpg';
       return $patterns;
    } );
    ?>
    ```

#### The update header

Appcaches are refetched when the manifest file content changes so we add a few items
as comments at the top of the file.

 1. The current theme (and version if available)
 2. The most recent modified time of any files we find the server path for
 3. The size of all the files that we find a server path for
 4. get_var( “SELECT post_modified FROM $wpdb->posts WHERE post_type = ‘post’ ORDER
    BY post_modified DESC LIMIT 1” );
     return $headers; } ); ?>

### More about appcache

I strongly recommend learning more about what you can do with appcache by reading
the following articles:

 * [HTML5 RockÌtumọ̀ Yorùbá: ’s Introduction to Appcache](http://www.html5rocks.com/en/tutorials/appcache/beginner/)
 * [Application cache is a douchebag](http://alistapart.com/article/application-cache-is-a-douchebag)

## Ìgbéwọlẹ̀

Upload the plugin to your plugins directory and activate it. ThereÌtumọ̀ Yorùbá:’
s no configuration involved or settings screen.

## Àwọn àgbéyẹ̀wò

![](https://secure.gravatar.com/avatar/610b40327fa27bfb993f09ec4ade9502133feca83ec4b528ca7c17a17a30d023?
s=60&d=retro&r=g)

### 󠀁[this looks bad ass](https://wordpress.org/support/topic/this-looks-bad-ass/)󠁿

 [Jason K. Dove, SEO](https://profiles.wordpress.org/3dseo/) Ọ̀wàrà 26, 2017

Sadly, before my time in the trenches. Just curious, what happened with this?

![](https://secure.gravatar.com/avatar/030258ae90e99d4f669e22b5f0855e0d83bcba827d966107ab9a03b4f3cb1974?
s=60&d=retro&r=g)

### 󠀁[Great caching tool for geeks !](https://wordpress.org/support/topic/great-caching-tool-for-geeks/)󠁿

 [Serhii Shyran](https://profiles.wordpress.org/shyran/) Bélú 29, 2016

My hat down man, this is truly awesome piece of mastery in the world of WordPress
caching… for those who know 😉

 [ Ka gbogbo àwọn àgbéyẹ̀wò 2 ](https://wordpress.org/support/plugin/appcachify/reviews/)

## Àwọn Olùkópa & Olùgbéejáde

“Appcachify” jẹ́ ètò ìṣàmúlò orísun ṣíṣí sílẹ̀. Àwọn ènìyàn wọ̀nyí ti ṣe ìkópa sí
plugin yìí.

Àwọn Olùkópa

 *   [ Robert O'Rourke ](https://profiles.wordpress.org/sanchothefat/)

[Túmọ̀ “Appcachify” sí èdè rẹ.](https://translate.wordpress.org/projects/wp-plugins/appcachify)

### Ṣe o nífẹ̀ẹ́ sí ìdàgbàsókè?

[Ṣàwárí koodu](https://plugins.trac.wordpress.org/browser/appcachify/), ṣàyẹ̀wò 
[ibi ìpamọ́ SVN](https://plugins.svn.wordpress.org/appcachify/), tàbí ṣe àgbékalẹ̀
sí [àkọsílẹ̀ ìdàgbàsókè](https://plugins.trac.wordpress.org/log/appcachify/) nípasẹ̀
[RSS](https://plugins.trac.wordpress.org/log/appcachify/?limit=100&mode=stop_on_copy&format=rss).

## Àkọsílẹ̀ àwọn àyípadà

#### 1.0

 * Initial commit to wordpress.org

## Àkójọpọ̀ Meta

 *  Ẹ̀yà **0.1**
 *  Ìgbàgbọ́hùn tó kẹ́yìn **ọdún 12 sẹ́yìn**
 *  Àwọn ìgbéwọlẹ̀ tó ṣiṣẹ́ **10+**
 *  Ẹ̀yà WordPress ** 3.8 tàbí ju bẹ́ẹ̀ lọ **
 *  Dánwò dé **3.9.40**
 *  Èdè
 * [English (US)](https://wordpress.org/plugins/appcachify/)
 * Àwọn àmì
 * [appcache](https://yor.wordpress.org/plugins/tags/appcache/)[caching](https://yor.wordpress.org/plugins/tags/caching/)
   [HTML5](https://yor.wordpress.org/plugins/tags/html5/)[performance](https://yor.wordpress.org/plugins/tags/performance/)
 *  [Ìwòye Tó Péye](https://yor.wordpress.org/plugins/appcachify/advanced/)

## Àwọn ìbò

 5 lára àwọn ìràwọ̀ 5.

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

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

[Wo gbogbo àwọn àgbéyẹ̀wò](https://wordpress.org/support/plugin/appcachify/reviews/)

## Àwọn Olùkópa

 *   [ Robert O'Rourke ](https://profiles.wordpress.org/sanchothefat/)

## Ìrànlọ́wọ́

Nǹkan wà tí o fẹ́ sọ? Ṣé o nílò ìrànlọ́wọ́?

 [Wo àpéjọ ìrànlọ́wọ́](https://wordpress.org/support/plugin/appcachify/)