diff options
| author | randomdan <randomdan@localhost> | 2013-03-23 14:19:49 +0000 |
|---|---|---|
| committer | randomdan <randomdan@localhost> | 2013-03-23 14:19:49 +0000 |
| commit | 9fd1ac57a5799de5fe18506e41eeba26b0df29cf (patch) | |
| tree | 2fe4de3aa9c710583a20a1998642fba45dd58927 /project2/common/scriptLoader.h | |
| parent | Really dirty hack to make libxmlpp not crash with HTML docs (diff) | |
| download | project2-9fd1ac57a5799de5fe18506e41eeba26b0df29cf.tar.bz2 project2-9fd1ac57a5799de5fe18506e41eeba26b0df29cf.tar.xz project2-9fd1ac57a5799de5fe18506e41eeba26b0df29cf.zip | |
Allow script components to declare themselves uncacheable
Diffstat (limited to 'project2/common/scriptLoader.h')
| -rw-r--r-- | project2/common/scriptLoader.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/project2/common/scriptLoader.h b/project2/common/scriptLoader.h index 2582a52..2b1057b 100644 --- a/project2/common/scriptLoader.h +++ b/project2/common/scriptLoader.h @@ -131,6 +131,7 @@ class ComponentLoader { virtual void onPeriodic(); // When the app engine feels like it virtual void onConfigLoad(); // When the environment reloads the configuration virtual const Options * options() const; // Options to be populated from the common config file/env/etc + virtual bool cacheable() const { return true; } // The component can be cached for next run }; template <class Impl, typename... Params> |
