addshore / addframe

OLD addwiki framework (See the newer https://github.com/addwiki libraries)
7 stars 2 forks source link

Need some cache system #128

Closed legoktm closed 10 years ago

legoktm commented 10 years ago

Currently all the namespaces, urls are fetched as needed and only stored for that one specific site object. Since these don't change very often, they should be cached and save a few API requests each time...

addshore commented 10 years ago

See http://git.io/o93A_A

Cache class has been implemented. Requests can have a maxcacheage defined in their class (in seconds). the API class will check this, check if there is a cached request and use it if possible there are ways to override / ignore the cache all the code has tests this will cache things between sessions!