Since it's instantiated as new() by other functions, I can't directly require.main.require into my plugin and override the functions
S
Sky Foxx
@Sky Foxx
Posts
-
Is it possible to override server side javascript from my plugin? -
Is it possible to override server side javascript from my plugin?I want to update how NodeBB's caching works for my particular usecase.
To be able to do that, I need to update the get and set methods for:
src/cache/ttl
andsrc/cache/lru
This is of course possible by directly editing these files. But is there some way to override them from my own plugin?