greenlaw110 / greenscript

A tool help web developers manage javascript/css rendering, including minimize and dependence management
42 stars 24 forks source link

Fixed issue when using Memcached as the Play! cache implementation #46

Open tazmaniax opened 12 years ago

tazmaniax commented 12 years ago

Greenscript was adding a value to Memcached before the value had been populated. Change was to wait until the value was populated and then add to Memcached.

  1. Add protected onWriterClose() method to BufferResource that is called when the writer is closed. Defaults to doing nothing.
  2. Updated GreenScriptPlugin.bufferLocator_.newBuffer(List resourceNames, String extension) to anonymously extend the BufferResource instance and define the onClose() method to do the Cache.set(...)
  3. Removed unnecessary @Override annotations