<?xml version="1.0" encoding="UTF-8"?>
<quiqqer>
    <settings>

        <config name="cache">

            <section name="general">
                <conf name="nocache">
                    <type><![CDATA[bool]]></type>
                </conf>
                <conf name="redis">
                    <type><![CDATA[string]]></type>
                </conf>
            </section>

            <section name="handlers">
                <conf name="filesystem">
                    <type><![CDATA[bool]]></type>
                    <defaultvalue>1</defaultvalue>
                </conf>
                <conf name="apc">
                    <type><![CDATA[bool]]></type>
                </conf>
                <conf name="memcache">
                    <type><![CDATA[bool]]></type>
                </conf>
                <conf name="redis">
                    <type><![CDATA[bool]]></type>
                </conf>
                <conf name="mongo">
                    <type><![CDATA[bool]]></type>
                </conf>
            </section>

            <section name="apc">
                <conf name="ttl">
                    <type><![CDATA[string]]></type>
                    <defaultvalue>43200</defaultvalue>
                </conf>
                <conf name="namespace">
                    <type><![CDATA[string]]></type>
                    <defaultvalue>CMS_DIR</defaultvalue>
                </conf>
            </section>

            <section name="memcache">
                <conf name="servers">
                    <type><![CDATA[integer]]></type>
                </conf>
                <conf name="prefix_key">
                    <type><![CDATA[string]]></type>
                </conf>
                <conf name="libketama_compatible">
                    <type><![CDATA[bool]]></type>
                </conf>
                <conf name="cache_lookups">
                    <type><![CDATA[bool]]></type>
                </conf>
                <conf name="serializer">
                    <type><![CDATA[string]]></type>
                </conf>
            </section>

            <section name="filesystem">
                <conf name="path">
                    <type><![CDATA[string]]></type>
                </conf>
            </section>

            <section name="sqlite">
                <conf name="path">
                    <type><![CDATA[string]]></type>
                </conf>
            </section>

            <section name="longtime">
                <conf name="type">
                    <type><![CDATA[string]]></type>
                </conf>
                <conf name="mongo_host">
                    <type><![CDATA[string]]></type>
                </conf>
                <conf name="mongo_database">
                    <type><![CDATA[string]]></type>
                </conf>
                <conf name="mongo_collection">
                    <type><![CDATA[string]]></type>
                </conf>
                <conf name="mongo_username">
                    <type><![CDATA[string]]></type>
                </conf>
                <conf name="mongo_password">
                    <type><![CDATA[string]]></type>
                </conf>
                <conf name="file_path">
                    <type><![CDATA[string]]></type>
                </conf>
                <conf name="redis_server">
                    <type><![CDATA[string]]></type>
                </conf>
            </section>

        </config>

        <window name="quiqqer-cache" menu-parent="/settings/quiqqer/">
            <title>
                <locale group="quiqqer/core" var="quiqqer.settings.cache"/>
            </title>

            <params>
                <icon>fa fa-sort-amount-desc</icon>
            </params>

            <categories>
                <category name="settings" require="controls/cache/General">
                    <title>
                        <locale group="quiqqer/core" var="quiqqer.settings.general.title"/>
                    </title>
                    <icon>fa fa-cogs</icon>

                    <settings title="general" name="general">
                        <title>
                            <locale group="quiqqer/core" var="quiqqer.settings.cache.title"/>
                        </title>

                        <input conf="general.nocache" type="checkbox">
                            <text>
                                <locale group="quiqqer/core" var="quiqqer.settings.cache.general.nocache"/>
                            </text>
                            <description>
                                <locale group="quiqqer/core"
                                        var="quiqqer.settings.cache.general.nocache.description"/>
                            </description>
                        </input>

                        <select conf="general.cacheType">
                            <text>
                                <locale group="quiqqer/core" var="quiqqer.settings.cache.handler.title"/>
                            </text>

                            <option value="">---</option>
                            <option value="filesystem">
                                <locale group="quiqqer/core" var="quiqqer.settings.cache.handler.filesystem"/>
                            </option>
                            <option value="apc">
                                <locale group="quiqqer/core" var="quiqqer.settings.cache.handler.apc"/>
                            </option>
                            <option value="memcache">
                                <locale group="quiqqer/core" var="quiqqer.settings.cache.handler.memcache"/>
                            </option>
                            <option value="redis">
                                <locale group="quiqqer/core" var="quiqqer.settings.cache.handler.redis"/>
                            </option>
                            <option value="mongo">
                                <locale group="quiqqer/core" var="quiqqer.settings.cache.handler.mongo"/>
                            </option>
                        </select>
                    </settings>

                    <settings title="redis" name="redis">
                        <title>
                            <locale group="quiqqer/core" var="quiqqer.settings.cache.redis.title"/>
                        </title>

                        <input conf="general.redis" type="text" placeholder="localhost">
                            <text>
                                <locale group="quiqqer/core" var="quiqqer.settings.cache.redis.server"/>
                            </text>
                            <description>
                                <locale group="quiqqer/core" var="quiqqer.settings.cache.redis.server.description"/>
                            </description>
                        </input>
                    </settings>

                    <settings title="apc" name="apc">
                        <title>
                            <locale group="quiqqer/core" var="quiqqer.settings.cache.apc.title"/>
                        </title>

                        <input conf="apc.namespace" type="text">
                            <text>
                                <locale group="quiqqer/core" var="quiqqer.settings.cache.apc.namespace"/>
                            </text>
                        </input>

                        <input conf="apc.ttl" type="text">
                            <text>
                                <locale group="quiqqer/core" var="quiqqer.settings.cache.apc.ttl"/>
                            </text>
                        </input>
                    </settings>

                    <settings title="memcache" name="memcache">
                        <title>
                            <locale group="quiqqer/core" var="quiqqer.settings.memcache.title"/>
                        </title>

                        <input conf="memcache.servers" type="text">
                            <text>
                                <locale group="quiqqer/core" var="quiqqer.settings.memcache.servers"/>
                            </text>
                        </input>

                        <input conf="memcache.prefix_key" type="text">
                            <text>
                                <locale group="quiqqer/core" var="quiqqer.settings.memcache.prefix_key"/>
                            </text>
                        </input>

                        <input conf="memcache.serializer" type="text">
                            <text>
                                <locale group="quiqqer/core" var="quiqqer.settings.memcache.serializer"/>
                            </text>
                        </input>

                        <input conf="memcache.libketama_compatible" type="checkbox">
                            <text>
                                <locale group="quiqqer/core" var="quiqqer.settings.memcache.libketama_compatible"/>
                            </text>
                        </input>

                        <input conf="memcache.cache_lookups" type="checkbox">
                            <text>
                                <locale group="quiqqer/core" var="quiqqer.settings.memcache.cache_lookups"/>
                            </text>
                        </input>
                    </settings>

                    <settings title="filesystem" name="filesystem">
                        <title>
                            <locale group="quiqqer/core" var="quiqqer.settings.filesystem.title"/>
                        </title>
                        <input conf="filesystem.path" type="text">
                            <text>
                                <locale group="quiqqer/core" var="quiqqer.settings.filesystem.path"/>
                            </text>
                            <description>
                                <locale group="quiqqer/core" var="quiqqer.settings.filesystem.path.description"/>
                            </description>
                        </input>
                    </settings>

                    <settings title="mongo" name="mongo">
                        <title>
                            <locale group="quiqqer/core" var="quiqqer.settings.mongo.title"/>
                        </title>

                        <input conf="mongo.host" type="text" placeholder="localhost">
                            <text>
                                <locale group="quiqqer/core" var="quiqqer.settings.mongo.server"/>
                            </text>
                        </input>
                        <input conf="mongo.database" type="text" placeholder="local">
                            <text>
                                <locale group="quiqqer/core" var="quiqqer.settings.mongo.database"/>
                            </text>
                        </input>
                        <input conf="mongo.collection" type="text" placeholder="quiqqer.cache">
                            <text>
                                <locale group="quiqqer/core" var="quiqqer.settings.mongo.collection"/>
                            </text>
                        </input>
                        <input conf="mongo.username" type="text">
                            <text>
                                <locale group="quiqqer/core" var="quiqqer.settings.mongo.username"/>
                            </text>
                        </input>
                        <input conf="mongo.password" type="text">
                            <text>
                                <locale group="quiqqer/core" var="quiqqer.settings.mongo.password"/>
                            </text>
                        </input>
                    </settings>
                </category>

                <category name="longtime" require="controls/cache/LongTime">
                    <title>
                        <locale group="quiqqer/core" var="quiqqer.settings.cache.longtime.title"/>
                    </title>
                    <text>
                        <locale group="quiqqer/core" var="quiqqer.settings.cache.longtime.text"/>
                    </text>
                    <icon>fa fa-cogs</icon>

                    <settings title="longtime" name="longtime">
                        <title>
                            <locale group="quiqqer/core" var="quiqqer.settings.longtime.title"/>
                        </title>

                        <select conf="longtime.type">
                            <text>
                                <locale group="quiqqer/core" var="quiqqer.settings.longtime.cache"/>
                            </text>
                            <description>
                                <locale group="quiqqer/core" var="quiqqer.settings.longtime.cache.description"/>
                            </description>

                            <option value="file">
                                <locale group="quiqqer/core" var="quiqqer.settings.longtime.file"/>
                            </option>
                            <option value="mongo">
                                <locale group="quiqqer/core" var="quiqqer.settings.longtime.mongo"/>
                            </option>
                            <option value="redis">
                                <locale group="quiqqer/core" var="quiqqer.settings.longtime.redis"/>
                            </option>
                        </select>
                    </settings>

                    <settings title="longtime-redis" name="longtime-redis">
                        <title>
                            <locale group="quiqqer/core" var="quiqqer.settings.longTimeCache.redis.title"/>
                        </title>

                        <input conf="longtime.redis_server" type="text" placeholder="localhost">
                            <text>
                                <locale group="quiqqer/core" var="quiqqer.settings.longTimeCache.redis.server"/>
                            </text>
                            <description>
                                <locale group="quiqqer/core"
                                        var="quiqqer.settings.longTimeCache.redis.server.description"/>
                            </description>
                        </input>
                    </settings>

                    <settings title="longtime-file" name="longtime-file">
                        <title>
                            <locale group="quiqqer/core" var="quiqqer.settings.longTimeCache.file.title"/>
                        </title>

                        <input conf="longtime.file_path" type="text">
                            <text>
                                <locale group="quiqqer/core" var="quiqqer.settings.longTimeCache.file.path"/>
                            </text>
                            <description>
                                <locale group="quiqqer/core"
                                        var="quiqqer.settings.longTimeCache.file.path.description"/>
                            </description>
                        </input>
                    </settings>

                    <settings title="longtime-mongo" name="longtime-mongo">
                        <title>
                            <locale group="quiqqer/core" var="quiqqer.settings.longTimeCache.mongo.title"/>
                        </title>

                        <input conf="longtime.mongo_host" type="text" placeholder="localhost">
                            <text>
                                <locale group="quiqqer/core" var="quiqqer.settings.longTimeCache.mongo.server"/>
                            </text>
                        </input>
                        <input conf="longtime.mongo_database" type="text" placeholder="local">
                            <text>
                                <locale group="quiqqer/core" var="quiqqer.settings.longTimeCache.mongo.database"/>
                            </text>
                        </input>

                        <input conf="longtime.mongo_collection" type="text" placeholder="quiqqer.store">
                            <text>
                                <locale group="quiqqer/core"
                                        var="quiqqer.settings.longTimeCache.mongo_collection.server"/>
                            </text>
                        </input>

                        <input conf="longtime.mongo_username" type="text">
                            <text>
                                <locale group="quiqqer/core"
                                        var="quiqqer.settings.longTimeCache.mongo.username"/>
                            </text>
                        </input>

                        <input conf="longtime.mongo_password" type="text">
                            <text>
                                <locale group="quiqqer/core"
                                        var="quiqqer.settings.longTimeCache.mongo.password"/>
                            </text>
                        </input>
                    </settings>

                </category>

                <category name="management" require="controls/cache/Settings">
                    <title>
                        <locale group="quiqqer/core" var="quiqqer.settings.cache.management.title"/>
                    </title>
                    <text>
                        <locale group="quiqqer/core" var="quiqqer.settings.cache.management.text"/>
                    </text>
                    <icon>fa fa-paint-brush</icon>

                    <settings title="clearCompleteCache" name="clearCompleteCache">
                        <title>
                            <locale group="quiqqer/core" var="quiqqer.settings.cache.clear.title"/>
                        </title>
                    </settings>

                    <settings title="purgeCache" name="purgeCache">
                        <title>
                            <locale group="quiqqer/core" var="quiqqer.settings.cache.purge.title"/>
                        </title>
                    </settings>

                    <settings title="clearQuiqqerCache" name="clearQuiqqerCache">
                        <title>
                            <locale group="quiqqer/core" var="quiqqer.settings.cache.quiqqer.title"/>
                        </title>
                    </settings>

                </category>

            </categories>
        </window>

    </settings>
</quiqqer>
