cubehouse / themeparks

Unofficial API for accessing ride wait times and schedules for Disneyland, Disney World, Universal Studios, and many more parks
MIT License
540 stars 126 forks source link

CacheWaitTimesLength not working in 5.0 #209

Closed jtmaddux closed 4 years ago

jtmaddux commented 5 years ago

I am having trouble getting CacheWaitTimesLength to have any impact. I seem to get 5min wait even when I program a different value, for example:

var Themeparks = require("themeparks"); Themeparks.Settings.CacheWaitTimesLength = 60; //Time to cache waiting times (in seconds)

jtmaddux commented 5 years ago

I've had more success with this syntax: var disneyland = new Themeparks.Parks.DisneylandResortMagicKingdom({'cacheWaitTimesLength': 1});

cubehouse commented 5 years ago

Themeparks.Settings.CacheWaitTimesLength is no longer used.

I need to update the documentation, it's a little out-of-date following some rush jobs getting 5.x out when the old Disney API changed.