On Thu, Feb 16, 2012 at 01:10, Tomasz Janczuk <[email protected]> wrote:
> Is there a way to control the caching of native modules (e.g. http or
> net)? I would like to be able to remove entries from that cache to
> cause the modules to be re-created from scratch upon subsequent
> 'request' for them.
>
> As far as I can tell this cache is separate from the cache of non-
> native modules and I could not find a way to access it from a node.js
> app.
`delete require('native_module')._cache.http` may work but please note
that you're in deep unsupported territory there.
--
Job Board: http://jobs.nodejs.org/
Posting guidelines:
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en