<?xml version="1.0" encoding="UTF-8"?>
<faqs>
    <section name="General">
        <entry>
            <question>
                <![CDATA[ Which Enterprise features are currently available? ]]>
            </question>
            <answer>
                <![CDATA[ <p>Enterprise features available:</p>
                <ul>
                    <li>Database cluster</li>
                    <li>Fragment cache</li>
                    <li>Amazon <acronym title="Simple Notification Service">SNS</acronym></li>
                </ul>
                    ]]>
            </answer>
        </entry>
        <entry>
            <question>
                <![CDATA[ How do I enable access to Enterprise features? ]]>
            </question>
            <answer>
                <![CDATA[ <p>Add define('W3TC_ENTERPRISE', true); to your wp-config.php file.</p> ]]>
            </answer>
        </entry>
        <entry>
            <question><![CDATA[ When should I use Amazon <acronym title="Simple Notification Service">SNS</acronym>? ]]></question>
            <answer><![CDATA[ It should be used when you use load balancing with multiple servers. Using Amazon <acronym title="Simple Notification Service">SNS</acronym> will make sure that the W3 Total Cache caches for each server is purged when required. ]]></answer>
        </entry>
    </section>
    <section name="Usage">
        <entry>
            <question><![CDATA[ How do I enable Database Cluster support? ]]></question>
            <answer><![CDATA[
                    <p>In order to use Database Cluster you need use WordPress in network mode and enable Enterprise mode for W3 Total Cache.</p>
                    <p>After enabling Enterprise mode you will find a area inside Database Cache box on the General Settings page. Click 'Enable database cluster' to enable the functionality.</p>
                    ]]></answer>
        </entry>
        <entry>
            <question><![CDATA[ How do I implement fragment caching? ]]></question>
            <answer><![CDATA[
				<p>Fragment caching adds new functionality to the WordPress <a href="http://codex.wordpress.org/Transients_API">Transients <acronym title="Application Programming Interface">API</acronym></a>:</p>
				<ul>
				    <li>Adds support for grouping transients both per blog and site wide</li>
				    <li>Adds support for manual flushing of registered transient groups</li>
				    <li>Adds support for action based flushing of registered transient groups</li>
				</ul>
				<p>To make the plugin aware that you group transients see code examples below:</p>
				<pre>
add_action('w3tc_register_fragment_groups', 'my_plugin_register_groups');

function my_plugin_register_groups() {
	//blog specific group and an array of actions that will trigger a flush of the group
	w3tc_register_fragment_group('my_plugin_', array('publish_post'));
	//If using MultiSite Network/site wide specific group and an array of actions that will trigger a flush of the group
	w3tc_register_fragment_group_global('my_plugin_global_', array('edit_site'));
}
function my_plugin_flush_group() {
	//manually flush a blog specific group.
	w3tc_fragmentcache_flush_group('my_plugin_');
}
function my_plugin_flush_global_group() {
	//manually flush a network wide group
	w3tc_fragmentcache_flush_group('my_plugin_global_', true);
}

//Set transients
function on_some_event() {
    if (false === get_transient('my_plugin_some_key'))
        //my_plugin_ prefix is the group name we registered earlier
        set_transient('my_plugin_some_key', 'blog specific value');
    if (false === get_site_transient('my_plugin_some_key'))
        //my_plugin_site_ prefix is the group name we registered earlier
        set_site_transient('my_plugin_site_some_key', 'site wide specific value');
}
	</pre>
			]]></answer>
        </entry>
        <entry>
            <question><![CDATA[ How do I configure Amazon <acronym title="Simple Notification Service">SNS</acronym>?]]>
            </question>
            <answer><![CDATA[
                <ol>
                <li>You need to visit <a href="https://console.aws.amazon.com/sns/"><acronym title="Simple Notification Service">SNS</acronym></a> and sign in /create account.</li>
                <li>Create a new topic.</li>
                <li>Copy paste the Topic ARN into correspongding field on the General Settings page. </li>
                <li>Enter the corrent <a href="http://docs.aws.amazon.com/general/latest/gr/rande.html#sns_region">SNS region</a> in the corresponding textfield on General Settings page.</li>
                <li>Enter your API key and API secret. You find your API key and API secret under Security Credentials in your Amazon account.</li>
                <li>Click subscribe.</li>
                <li>Save settings</li>
                </ol>
                    ]]>
            </answer>
        </entry>
    </section>
    <section name="Requirements">
        <entry>
            <question>
            <![CDATA[ What is required to use Amazon <acronym title="Simple Notification Service">SNS</acronym>?]]>
            </question>
            <answer>
                <![CDATA[
                <p>
                You need to sign up for a <a href="http://aws.amazon.com/sns/" target="_blank">Amazon Web Services account</a>.
                </p>
                 ]]>
            </answer>
        </entry>
    </section>
</faqs>