Difference between revisions of "Cache API"
(New page: This is a development page for the Cache API that we are currently implementing. Talk to EmuWikiAdmin- for more information. ---- Ok the dummy was implemented ...) |
|||
Line 6: | Line 6: | ||
---- | ---- | ||
− | I also have a somewhat working version here : CacheAPI_current.txt | + | I also have a somewhat working version here : http://www.emuwiki.com/testinstall/extensions/CacheAPI_current.txt |
For now, all it takes to make it work is to rename to php, include in Local Settings, and execute the following SQL command : | For now, all it takes to make it work is to rename to php, include in Local Settings, and execute the following SQL command : |
Revision as of 02:05, 28 June 2009
This is a development page for the Cache API that we are currently implementing. Talk to EmuWikiAdmin- for more information.
Ok the dummy was implemented here : http://www.emuwiki.com/testinstall/extensions/CacheAPI.txt EmuWikiAdmin- 01:04, 28 June 2009 (UTC)
I also have a somewhat working version here : http://www.emuwiki.com/testinstall/extensions/CacheAPI_current.txt
For now, all it takes to make it work is to rename to php, include in Local Settings, and execute the following SQL command :
CREATE TABLE IF NOT EXISTS `cacheapi` ( `page_ids` INT(10) NOT NULL , `dependencies` TEXT CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL , `first` TEXT CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL , `type` INT(10) NOT NULL , INDEX ( `page_ids` , `dependencies`(40) , `first`(40) , `type` ) ) ENGINE = MYISAM
This version implements the 3 types of dependencies (category, template, linksto), but no time dependency yet.
For now, only saving (editing, creating) an article will outdate the cache, not doing other things such as deleting or moving articles (to come).
Updated June 27th 21:00
EmuWikiAdmin- 01:04, 28 June 2009 (UTC)
TODO :
- Implement other types of dependencies (Namespace, linksfrom, etc...)
- Implement the NOTs (notcategory, notlinksto, etc...)
- Make a better system for deleation of dependencies (right now, the only thing you can do is delete ALL dependencies related to a page at once)
- Implement cache outdating when special events other than edit/create are performed (deletion, rename, etc...)
- If you need anything else, add it here.