Skip to content

Instantly share code, notes, and snippets.

@ktor
Created May 26, 2020 00:47
Show Gist options
  • Select an option

  • Save ktor/99b04edb669f85fffec6381dbe12c3b4 to your computer and use it in GitHub Desktop.

Select an option

Save ktor/99b04edb669f85fffec6381dbe12c3b4 to your computer and use it in GitHub Desktop.

Revisions

  1. ktor created this gist May 26, 2020.
    6 changes: 6 additions & 0 deletions combo-servlet-clean-up.groovy
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,6 @@
    import com.liferay.portal.servlet.ComboServlet;
    import com.liferay.portal.servlet.ComboServlet.FileContentBag;
    import com.liferay.portal.kernel.cache.SingleVMPoolUtil;

    SingleVMPoolUtil.getCache(ComboServlet.class.getName()).removeAll();
    SingleVMPoolUtil.getCache(FileContentBag.class.getName()).removeAll();