GitHub PushEvent at 2014-03-22 09:08:09
Repository: transvision
Actor: pascalchevrel
Payload: {"shas":[["773f6ba4e3973f8833c9947e30bb1c3d98cb60ea","c3975829382cb65640ad3190204a6b6fd6e0edee@free.fr","Issue #159 : caching system\n\n* New Cache class with these methods:\n - setKey()\n - getKey()\n - isActivated()\n - flush()\n - isValid()\n - deleteKey()\n - getKeyPath()\n - getCachePath()\n - isObsolete()\n\n* New constants:\n - CACHE constant activates/deactivates the cache\n - CACHE_TIME is the default duration of the cache\n - CACHE_PATH is the path to the cache folder\n\nThere are also fallback constants in the class to use it outside of Transvision as a drop in class.\n\n* GET['nocache'] to force a page not to use caching\n\n* Cache duration\n - can't be older than generated data (uses a timestamp file in glossaire.sh)\n - can be defined in seconds when using getKey(), ex getKey($id, 300)\n\n* Onestring model makes a use of the class, ex:\n\nif (! $data = Cache::getKey($cache_id)) {\n    /* create $data */\n    /* Now cache data */\n    Cache::setKey($cache_id, $data);\n}\n\n* Tests for all methods","pascalc",true]],"size":1,"ref":"refs/heads/issue-159-data-caching","head":"773f6ba4e3973f8833c9947e30bb1c3d98cb60ea"}