Feature #23841

Means to disable cache for testing

Added by Sickboy almost 4 years ago. Updated over 3 years ago.

Status:Closed Start date:08/27/2011
Priority:Normal Due date:
Assignee:Sickboy % Done:

100%

Category:-
Target version:v0.8.3
Component: Affected Version:
Close Reason:

Related issues

related to Community Base Addons - Feature #24979: Write cache status to rpt Closed 09/28/2011

Associated revisions

Revision 7e77b009
Added by Sickboy over 3 years ago

~ ADDED: Local DISABLE_COMPILE_CACHE define to disable caching where COMPILE_FILE variants are involved (incl PREP, etc). refs #23841

Revision 7e77b009
Added by Sickboy over 3 years ago

~ ADDED: Local DISABLE_COMPILE_CACHE define to disable caching where COMPILE_FILE variants are involved (incl PREP, etc). refs #23841

History

Updated by Sickboy almost 4 years ago

  • File cba_cache_disable.pbo added
  • Status changed from Assigned to Resolved
  • % Done changed from 0 to 100

0 = disabled
1 = enabled
If undefined, enabled is assumed.

The following config code can be used inside any addon config, or mission config (description.ext).

class CfgSettings {
   class CBA {
      class Caching {
         compile = 0;
         xeh = 0;
         functions = 0;
      };
   };
};

You can also set global variables, but you might not be in time to disable the cache for everything, so config is recommended.
  • CBA_COMPILE_RECOMPILE - when TRUE, compile preProc caching is disabled
  • SLX_XEH_RECOMPILE - when TRUE, XEH Events caching is disabled
  • CBA_FUNC_RECOMPILE - when TRUE, Function caching is disabled
  • CBA_RECOMPILE - Global Switch, when defined (aka NOT nil), all caching is disabled

Attached addon disables all caching.

Updated by Sickboy almost 4 years ago

  • File cba_extended_eventhandlers.pbo added

Currently causes an error in the current release version, fixed in attached version.

Updated by Sickboy almost 4 years ago

  • File deleted (cba_cache_disable.pbo)

Updated by Sickboy almost 4 years ago

  • File deleted (cba_extended_eventhandlers.pbo)

Updated by Sickboy almost 4 years ago

http://dev-heaven.net/projects/cca/repository/revisions/develop/show/optional/cache_disable
Available in hotfixed CBA build on SU, run Verify and Repair on @CBA to grab early.

Updated by Sickboy over 3 years ago

To have CBA_RECOMPILE = true; influence CBA_COMPILE_RECOMPILE (compile preProc cache), the CBA_RECOMPILE = true; needs to be set at the top of the _fnc_compile function inside Extended_EventHandlers\init_compile.sqf

Could use some improvement, though recommended to simply use the cba_disable_cache config or missionConfigFile (description.ext) switches.

Updated by Sickboy over 3 years ago

  • Target version changed from 855 to v0.8.3

Updated by Sickboy over 3 years ago

  • Status changed from Resolved to Closed

Available on latest SU dev-build and on BIF v0.8.2rc1 build

Also available in: Atom PDF