<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="FeedCreator 1.7.2" -->
<rss version="2.0">
    <channel>
        <title>_output_cache[ Search for &quot;&quot;]</title>
        <description></description>
        <link>http://xataface.com/wiki/index.php?-action=single_record_search&amp;-table=wiki&amp;page_id=%3D45&amp;-cursor=0&amp;-skip=0&amp;-limit=30&amp;-mode=list&amp;--subsearch=</link>
        <lastBuildDate>Mon, 20 May 2013 00:07:18 +0100</lastBuildDate>
        <generator>FeedCreator 1.7.2</generator>
        <item>
            <title>_output_cache</title>
            <link>http://www.xataface.com/wiki/_output_cache</link>
            <description>&lt;table&gt;&lt;thead&gt;&lt;tr&gt;&lt;th&gt;Field&lt;/th&gt;&lt;th&gt;Value&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td valign=&quot;top&quot;&gt;Page name&lt;/td&gt;&lt;td valign=&quot;top&quot;&gt;_output_cache&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td valign=&quot;top&quot;&gt;Page id&lt;/td&gt;&lt;td valign=&quot;top&quot;&gt;45&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td valign=&quot;top&quot;&gt;Page title&lt;/td&gt;&lt;td valign=&quot;top&quot;&gt;The Xataface Output Cache&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td valign=&quot;top&quot;&gt;Content&lt;/td&gt;&lt;td valign=&quot;top&quot;&gt;&lt;p&gt;&lt;div class=&quot;portalMessage&quot;&gt;Note: There was a bug in the output cache affecting Xataface version 1.0 to 1.3rc1.  If you are using a version of Xataface older than 1.3rc2 then you should either disable the output cache, or replace the Dataface/OutputCache.php file with one from a newer version.&lt;/div&gt;&lt;/p&gt;

&lt;table border=&quot;0&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot;&gt;&lt;tr&gt;&lt;td&gt;
&lt;div id=&quot;toc&quot;&gt;&lt;strong&gt;Table of Contents&lt;/strong&gt;
	&lt;div style=&quot;margin-left: 1em;&quot;&gt;&lt;a href=&quot;#toc0&quot;&gt;Features&lt;/a&gt;&lt;/div&gt;
	&lt;div style=&quot;margin-left: 1em;&quot;&gt;&lt;a href=&quot;#toc1&quot;&gt;How it works?&lt;/a&gt;&lt;/div&gt;
	&lt;div style=&quot;margin-left: 1em;&quot;&gt;&lt;a href=&quot;#toc2&quot;&gt;Where is the cache stored?&lt;/a&gt;&lt;/div&gt;
	&lt;div style=&quot;margin-left: 1em;&quot;&gt;&lt;a href=&quot;#toc3&quot;&gt;What if I make changes to the database?&lt;/a&gt;&lt;/div&gt;
	&lt;div style=&quot;margin-left: 1em;&quot;&gt;&lt;a href=&quot;#toc4&quot;&gt;What if I make changes to my configuration files and templates?&lt;/a&gt;&lt;/div&gt;
	&lt;div style=&quot;margin-left: 1em;&quot;&gt;&lt;a href=&quot;#toc5&quot;&gt;How do I enable the Cache?&lt;/a&gt;&lt;/div&gt;
	&lt;div style=&quot;margin-left: 1em;&quot;&gt;&lt;a href=&quot;#toc6&quot;&gt;How do I disable the Cache?&lt;/a&gt;&lt;/div&gt;
	&lt;div style=&quot;margin-left: 1em;&quot;&gt;&lt;a href=&quot;#toc7&quot;&gt;Configuration Options&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;

&lt;p&gt;Xataface does quite a bit of heavy lifting on each page request.  If your application is getting a lot of traffic that is slowing your server down, you may want to look at enabling the Xataface output cache.&lt;/p&gt;


&lt;h3 id=&quot;toc0&quot;&gt;Features&lt;/h3&gt;
&lt;ul&gt;
    &lt;li&gt; Improve speed of application dramatically - especially for seldom updated sites.&lt;/li&gt;
    &lt;li&gt; Supports multiple languages.&lt;/li&gt;
    &lt;li&gt; Supports multiple users (each user has own cache).&lt;/li&gt;
    &lt;li&gt; Provides GZIP compression for improved performance.&lt;/li&gt;
&lt;/ul&gt;


&lt;h3 id=&quot;toc1&quot;&gt;How it works?&lt;/h3&gt;
&lt;p&gt;When you receive a request, Xataface will return a cached version of the page if the page has been accessed before.  If the page doesn't yet exist in the cache it generates the page, saves it to the cache and outputs it to the user transparently.  The cache is completely transparent to your users.&lt;/p&gt;


&lt;h3 id=&quot;toc2&quot;&gt;Where is the cache stored?&lt;/h3&gt;
&lt;p&gt;Xataface creates a table called &lt;em&gt;__output_cache&lt;/em&gt; that stores all of the cached content for your application.  This table stores both a GZIPed and regular version of each page.  If the user's browser supports GZIP compression, Xataface will automatically return the GZIP version.  This results in further performance improvements.&lt;/p&gt;


&lt;h3 id=&quot;toc3&quot;&gt;What if I make changes to the database?&lt;/h3&gt;
&lt;p&gt;Xataface records which tables were in use when a page is cached.  If any of those tables are modified after the page is cached, Xataface will mark that cached page as &lt;em&gt;out of date&lt;/em&gt; and regenerate it the next time that it is requested.&lt;/p&gt;


&lt;h3 id=&quot;toc4&quot;&gt;What if I make changes to my configuration files and templates?&lt;/h3&gt;
&lt;p&gt;The output cache will have to be manually cleared if you make any changes to your source files (e.g. PHP, templates, and INI files).  Clearing the cache is as easy as deleting or emptying the &lt;em&gt;__output_cache&lt;/em&gt; table.&lt;/p&gt;


&lt;h3 id=&quot;toc5&quot;&gt;How do I enable the Cache?&lt;/h3&gt;
&lt;p&gt;Add the following to your &lt;a href=&quot;/wiki/conf.ini_file&quot;&gt;conf.ini file&lt;/a&gt;:&lt;/p&gt;


&lt;pre&gt;&lt;code&gt;[_output_cache]
    enabled=1&lt;/code&gt;&lt;/pre&gt;


&lt;h3 id=&quot;toc6&quot;&gt;How do I disable the Cache?&lt;/h3&gt;
&lt;p&gt;Simply comment out or remove the &lt;em&gt;[_output_cache]&lt;/em&gt; section of your &lt;a href=&quot;/wiki/conf.ini_file&quot;&gt;conf.ini file&lt;/a&gt;.  E.g. 
&lt;pre&gt;&lt;code&gt;;[_output_cache]
;   enabled=1&lt;/code&gt;&lt;/pre&gt;

&lt;/p&gt;


&lt;h3 id=&quot;toc7&quot;&gt;Configuration Options&lt;/h3&gt;
&lt;p&gt;The following directives can be added to the &lt;em&gt;[_output_cache]&lt;/em&gt; section of your &lt;a href=&quot;/wiki/conf.ini_file&quot;&gt;conf.ini file&lt;/a&gt; to customize how your output cache works.&lt;/p&gt;



&lt;table class=&quot;listing listing2&quot;&gt;
    &lt;tr&gt;
        &lt;th&gt; Name&lt;/th&gt;
        &lt;th&gt; Description&lt;/th&gt;
        &lt;th&gt; Version&lt;/th&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
        &lt;td&gt; lifeTime&lt;/td&gt;
        &lt;td&gt; Number of seconds before cached page is considered &lt;em&gt;out of date&lt;/em&gt;.&lt;/td&gt;
        &lt;td&gt; 0.7&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
        &lt;td&gt; tableName&lt;/td&gt;
        &lt;td&gt; The name of the table to store the cached pages.  Default '__output_cache'.&lt;/td&gt;
        &lt;td&gt; 0.7&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
        &lt;td&gt; ignoredTables&lt;/td&gt;
        &lt;td&gt; A comma-delimited list of tables that don't affect the output cache (i.e. these tables can be changed without causing the output cache to be refreshed.&lt;/td&gt;
        &lt;td&gt; 0.7&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
        &lt;td&gt; observedTables&lt;/td&gt;
        &lt;td&gt; A comma-delimited list of tables that should affect the status of the output cache for every page (whether the table is explicitly used by the page or not).  This is a useful way to tell Xataface to refresh your cache.&lt;/td&gt;
        &lt;td&gt; 0.7&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
        &lt;td&gt; exemptActions&lt;/td&gt;
        &lt;td&gt; A comma-delimited list of actions that are exempt from the output cache (and thus should not be cached).&lt;/td&gt;
        &lt;td&gt; 0.7&lt;/td&gt;
    &lt;/tr&gt;
&lt;/table&gt;

&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td valign=&quot;top&quot;&gt;Keywords&lt;/td&gt;&lt;td valign=&quot;top&quot;&gt;output cache&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td valign=&quot;top&quot;&gt;Language&lt;/td&gt;&lt;td valign=&quot;top&quot;&gt;en&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;</description>
            <author>_output_cache</author>
        </item>
    </channel>
</rss>
