- Latest build status with azerothcore:
This module for AzerothCore automatically increments the cache version on server startup, ensuring clients always have up-to-date cache data.
Something I noticed is not common knowledge is that the client has a version associated with its cache. If the server cache version does not match the client, the client will automatically clear its cache.
You can have the server increment this version each server restart very trivially. For example: https://i.imgur.com/3KYY9fJ.png
Doing this, you no longer need to worry about manually clearing the cache or players having out of date caches. -- stoneharry, WoW Modding Community https://discordapp.com/channels/407664041016688662/1301592845978833028/1301592845978833028
To use this module, ensure that the ClientCacheVersion
setting in worldserver.config
is set to its default value, 0
. Otherwise, the cache id from DB will be overwritten by this config.
- Configuration location:
worldserver.conf.dist
on GitHub
https://www.azerothcore.org/wiki/installing-a-module
- Requires source recompilation
- Modify config to easily disable in the future.
Found in
/etc/modules
, copy.conf.dist
to.conf
Disable IncrementCacheVersion.Enable
in .conf
or
Set ClientCacheVersion
setting in worldserver.config
- Remove
mod-increment-cache-version
folder - Restore cache version
UPDATE `version` SET `cache_id`=XX;
- Use the script
create_module.sh
located inmodules/
to start quickly with all the files you need and your git repo configured correctly (heavily recommended). - You can then use these scripts to start your project: https://github.com/azerothcore/azerothcore-boilerplates
- Do not hesitate to compare with some of our newer/bigger/famous modules.
- Edit the
README.md
and other files (include.sh
etc...) to fit your module. Note: the README is automatically created fromREADME_example.md
when you use the scriptcreate_module.sh
. - Publish your module to our catalogue.