diff --git a/src/java/fr/paris/lutece/plugins/forms/business/FormHome.java b/src/java/fr/paris/lutece/plugins/forms/business/FormHome.java index 053ce57f2..29b816336 100644 --- a/src/java/fr/paris/lutece/plugins/forms/business/FormHome.java +++ b/src/java/fr/paris/lutece/plugins/forms/business/FormHome.java @@ -71,6 +71,7 @@ public static Form create( Form form ) { _dao.insert( form, _plugin ); _cache.putInCache( _cache.getFormCacheKey( form.getId( ) ), form ); + _cache.removeKey( _cache.getFormListCacheKey( ) ); return form; } @@ -85,6 +86,7 @@ public static Form update( Form form ) { _dao.store( form, _plugin ); _cache.putInCache( _cache.getFormCacheKey( form.getId( ) ), form ); + _cache.removeKey( _cache.getFormListCacheKey( ) ); return form; } @@ -98,6 +100,7 @@ public static void remove( int nKey ) { _dao.delete( nKey, _plugin ); _cache.removeKey( _cache.getFormCacheKey( nKey ) ); + _cache.removeKey( _cache.getFormListCacheKey( ) ); } /**