[ Table Of Contents | Keyword Index ]

ns_runonce(n) 4.99 "NaviServer Built-in Commands"

NAME

ns_runonce - Run Tcl script only once

TABLE OF CONTENTS

    TABLE OF CONTENTS
    SYNOPSIS
    DESCRIPTION
    COMMANDS
    EXAMPLES
    SEE ALSO
    KEYWORDS

SYNOPSIS

ns_runonce ?-global? ?--? script

DESCRIPTION

This command ensirres that the script will be run only one time even if the file will be loaded several times

COMMANDS

ns_runonce ?-global? ?--? script


-global If specified run the command in global context otherwise in current virtual server

script Tcl script to run

EXAMPLES

 

ns_runonce {

    ns_cache_create mycache 0
}

SEE ALSO

nsd

KEYWORDS

NaviServer