cache flush option

This commit is contained in:
Erik Forkalsrud 2009-01-24 17:36:16 -08:00
parent 3b6bcafca3
commit ab3b8690af

View file

@ -66,6 +66,8 @@ public class AlbumServlet
public void doGet(HttpServletRequest req, HttpServletResponse res) public void doGet(HttpServletRequest req, HttpServletResponse res)
throws ServletException, IOException throws ServletException, IOException
{ {
if (req.getParameter("cacheFlush") != null) imageCache.flush();
req.setAttribute("assets", req.getContextPath() + "/assets"); req.setAttribute("assets", req.getContextPath() + "/assets");
req.setAttribute("req", req); req.setAttribute("req", req);
req.setAttribute("base", req.getContextPath() + req.getServletPath()); req.setAttribute("base", req.getContextPath() + req.getServletPath());