<?xml version="1.0" encoding="UTF-8"?>
<ajxp_plugin label="CONF_MESSAGE[Caching Driver]" description="CONF_MESSAGE[Setup the caching system]" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             xsi:noNamespaceSchemaLocation="file:../core.ajaxplorer/ajxp_registry.xsd">
    <class_definition classname="CoreCacheLoader" filename="plugins/core.cache/class.CoreCacheLoader.php"/>
    <client_settings>
        <resources>
            <i18n namespace="core.cache" path="plugins/core.cache/i18n"/>
        </resources>
    </client_settings>
    <server_settings>
        <global_param type="plugin_instance:cache" name="UNIQUE_INSTANCE_CONFIG" group="CONF_MESSAGE[Cache Store Instance]" label="CONF_MESSAGE[Instance]" description="CONF_MESSAGE[Choose the configuration plugin]" mandatory="false"/>
    </server_settings>
    <registry_contributions>
        <actions>
            <action name="cache_service_expose_stats">
                <rightsContext adminOnly="true" noUser="false" read="true" userLogged="only" write="true"/>
                <processing>
                    <serverCallback methodName="exposeCacheStats" restParams="/namespace"/>
                </processing>
            </action>
            <action name="cache_service_clear_cache">
                <rightsContext adminOnly="true" noUser="false" read="true" userLogged="only" write="true"/>
                <processing>
                    <serverCallback methodName="clearCacheByNS" restParams="/namespace"/>
                </processing>
            </action>
        </actions>
        <hooks>
            <serverCallback methodName="loadNodeInfoFromCache" hookName="node.info.start"/>
            <serverCallback methodName="cacheNodeInfo" hookName="node.info.end"/>
            <serverCallback methodName="clearNodeInfoCache" hookName="node.change" defer="true"/>
            <serverCallback methodName="clearNodeInfoCache" hookName="node.meta_change" defer="true"/>
            <serverCallback methodName="clearWorkspaceNodeInfos" hookName="workspace.after_update" defer="true"/>
        </hooks>
    </registry_contributions>
</ajxp_plugin>
