Example usage for com.liferay.portal.kernel.webcache WebCachePoolUtil clear

List of usage examples for com.liferay.portal.kernel.webcache WebCachePoolUtil clear

Introduction

In this page you can find the example usage for com.liferay.portal.kernel.webcache WebCachePoolUtil clear.

Prototype

public static void clear() 

Source Link

Usage

From source file:com.liferay.portlet.admin.action.EditServerAction.java

License:Open Source License

protected void cacheSingle() throws Exception {
    WebCachePoolUtil.clear();
}

From source file:com.stoxx.portlet.manageusers.controller.ManageUsersController.java

private void clearCacheFromServer() {
    log.info("Clearing cache after Role Update");
    // Clearing cache from DB.
    try {/*  ww w. j  a  va  2 s  .com*/
        CacheRegistryUtil.clear();
    } catch (Exception e) {
        log.error(e.getMessage(), e);
    }
    // Clearing cache from clustered and single VM.
    try {
        WebCachePoolUtil.clear();
    } catch (Exception e) {
        log.error(e.getMessage(), e);
    }
    try {
        MultiVMPoolUtil.clear();
    } catch (Exception e) {
        log.error(e.getMessage(), e);
    }
}