Menu

Character cache not working

Terry Post
2013-08-23
2014-10-08
  • Terry Post

    Terry Post - 2013-08-23

    The data is being saved to the cache but the checkCache function always returns False so the web service call is always made. I believe I tracked this down to a now defunct field name for the Character Profile API. The Companions array is no longer valid so when checkCache verifies that all fields have been set, it cannot find Companions and returns false. To fix this, I removed 'companions' from the $fields array on line 9 in Character.class.php:

    I changed:
    private $fields = array('stats','talents','items','reputation','titles','professions','appearance','companions','mounts','achievements','progression','pvp','quests','pets','guild');

    to:
    private $fields = array('stats','talents','items','reputation','titles','professions','appearance','mounts','achievements','progression','pvp','quests','pets','guild');

    I also noticed a few new pieces of data available in the Character Profile API that are not included:
    feed
    hunterPets
    petSlots

     
  • Thomas Andersen

    Thomas Andersen - 2014-10-08

    New version out. Fixed that :)

     

Log in to post a comment.