<s> from cornice import Service <EOL> from pyramid import httpexceptions <EOL> from pyramid . security import NO_PERMISSION_REQUIRED <EOL> from kinto . events import ServerFlushed <EOL> flush = Service ( name = '<STR_LIT>' , <EOL> description = '<STR_LIT>' , <EOL> path = '<STR_LIT>' ) <EOL> @ flush . post ( permission = NO_PERMISSION_REQUIRED ) <EOL> def flush_post ( request ) : <EOL> request . registry . storage . flush ( ) <EOL> request . registry . permission . flush ( ) <EOL> request . registry . cache . flush ( ) <EOL> event = ServerFlushed ( request ) <EOL> request . registry . notify ( event ) <EOL> return httpexceptions . HTTPAccepted ( ) </s>
