Skip to content

Commit

Permalink
reduce fnc clear cache
Browse files Browse the repository at this point in the history
  • Loading branch information
OverlordZorn committed Jan 6, 2025
1 parent e3b1aa0 commit 42e97af
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 24 deletions.
1 change: 0 additions & 1 deletion addons/wardrobe/XEH_PREP.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ PREP(getAction_Icon);
// Cache
PREP(cache_get);
PREP(cache_set);
PREP(cache_clear);
PREP(clearOnClosed_InteractionMenu);
// Config
PREP(getCfgDataRandom);
Expand Down
22 changes: 0 additions & 22 deletions addons/wardrobe/functions/fnc_cache_clear.sqf

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ if (_queue isEqualTo "404") then {
{
if (_this isNotEqualTo [1]) exitWith {};

{ [_x] call FUNC(cache_clear) } forEach ( missionNamespace getVariable [QGVAR(menu_clear_queue), [] ] );
{ GVAR(cache) deleteAt _x } forEach ( missionNamespace getVariable [QGVAR(menu_clear_queue), [] ] );

missionNamespace setVariable [QGVAR(menu_clear_queue), nil ];
[_thisType, _thisId] call CBA_fnc_removeEventHandler;
Expand Down

0 comments on commit 42e97af

Please sign in to comment.