Skip to content

Automatically increments the cache version on server startup, ensuring clients always have up-to-date cache data

License

Notifications You must be signed in to change notification settings

sogladev/mod-increment-cache-version

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AzerothCore Module Increment Cache Version

  • Latest build status with azerothcore:

Build Status

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

⚠️ Warning

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.

How to install

https://www.azerothcore.org/wiki/installing-a-module

  1. Requires source recompilation
  2. Modify config to easily disable in the future. Found in /etc/modules, copy .conf.dist to .conf

How to disable

Disable IncrementCacheVersion.Enable in .conf

or

Set ClientCacheVersion setting in worldserver.config

How to remove

  1. Remove mod-increment-cache-version folder
  2. Restore cache version UPDATE `version` SET `cache_id`=XX;

How to create your own module

  1. Use the script create_module.sh located in modules/ to start quickly with all the files you need and your git repo configured correctly (heavily recommended).
  2. You can then use these scripts to start your project: https://github.com/azerothcore/azerothcore-boilerplates
  3. Do not hesitate to compare with some of our newer/bigger/famous modules.
  4. Edit the README.md and other files (include.sh etc...) to fit your module. Note: the README is automatically created from README_example.md when you use the script create_module.sh.
  5. Publish your module to our catalogue.

About

Automatically increments the cache version on server startup, ensuring clients always have up-to-date cache data

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published