Results 1 to 4 of 4

Thread: Is there a quick way to flush zimbra zimlet static content cache?

  1. #1
    Join Date
    Apr 2013
    Posts
    33
    Rep Power
    0

    Default Is there a quick way to flush zimbra zimlet static content cache?

    I've found that static zimlet files (js/css) are cached by the server.

    Server restart helps but it is too awkward solution for me as I have to develop on slow server and the operation takes too much time.

    "?dev=1" also helps but it brings in another slowness because JS files are transferred uncompressed and I have unstable 3G connection.

    I'm searching for something like "zmmailboxdctl flushcache".

    Is there anything better than two solutions I mentioned above?

  2. #2
    Join Date
    May 2013
    Location
    California
    Posts
    27
    Rep Power
    2

    Default

    I found that incrementing the version number in your zimlet definition file really helped forcing reloads when I wasn't using the _dev folder.

    In the _dev folder, zmmailboxdctl restart and then refreshing the browser was usually all I needed. zmmailboxdctl restart doesn't not take long at all.

  3. #3
    Join Date
    Apr 2007
    Location
    Paris, France
    Posts
    367
    Rep Power
    8

    Default

    "?dev=1" will only load all the merged files (like the js files) separately. It won't help for cache, just slow down the loading of the page.
    You should use the "_dev" which was designed to solve this problem of cache.
    If the zimlet is in "_dev", then you just need to refresh your page for the change in xml/js/css to take place.
    If you use jsp, you can modify the jetty configuration so you don't have to reload jetty with "zmmailboxdctl restart" to flush the cache.

  4. #4
    Join Date
    May 2013
    Location
    California
    Posts
    27
    Rep Power
    2

    Default

    Ah, good point. I was frequently updating JSP pages during development, so I got in 'always do zmmailboxdctl restart' mode. It took so little time to do that it was easier to do it every time.

Similar Threads

  1. Zimlet to clear AutoComplete cache for user ?
    By liverpoolfcfan in forum Zimlets
    Replies: 32
    Last Post: 08-01-2011, 05:13 AM
  2. Replies: 2
    Last Post: 12-21-2010, 04:16 AM
  3. Is there any way to flush cache via SOAP request?
    By cmargena in forum Developers
    Replies: 1
    Last Post: 08-08-2010, 07:38 AM
  4. Replies: 0
    Last Post: 07-08-2010, 04:28 PM
  5. Creating Zimlet content or using Zimlet as link
    By gfdos.sys in forum Zimlets
    Replies: 1
    Last Post: 08-05-2006, 12:16 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •