I'm getting the same results as you, except "delete" doesn't even visually remove the new folder (even though it says it does); when I restart Tomcat, then the folder disappears--presumably the flush/commit happens at that point. If you have a query tool like SquirrelSQL query the DB during the process you might be able to confirm that's the issue.

Glen

On 07/29/2013 07:20 AM, Greg Huber wrote:
Glen,

Can you test whether you can delete a media file folder?  ie add a folder
and then try and delete it.  For me it seems to delete it OK but when you
refresh the media file folder view it is still there.  If I then shut down
tomcat and restart it is gone.  It seems something to do with its cache?

checking:

public Query getNamedQuery(String queryName)
....
  q.setFlushMode(FlushModeType.COMMIT);

it sets the query to flush on commit, which should in theory flush the
query cache when the transaction is committed.

Is there some callback method we need to call to get it to flush?


Cheers Greg


Reply via email to