Changes between Version 3 and Version 4 of XcacheApi
- Timestamp:
- 2006-05-20T05:38:37+02:00 (7 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
XcacheApi
v3 v4 19 19 Examples: 20 20 21 * Simple Counter21 * Simple Counter 22 22 {{{ 23 23 This guest book has been visited <?php echo xcache_inc("count"); ?> times. 24 24 }}} 25 25 26 * Cacher 26 * Advanced Counter 27 {{{ 28 <?php 29 if (!xcache_isset("count")) { 30 xcache_set("count", load_count_from_mysql()); 31 } 32 ?> 33 This guest book has been visited <?php echo $count = xcache_inc("count"); ?> times. 34 <?php 35 // save every 100 hits 36 if (($count % 10) == 100) { 37 save_count_to_mysql($count); 38 } 39 ?> 40 }}} 41 42 * Cacher 27 43 {{{ 28 44 <?php … … 61 77 an admin php script will be available in [wiki:GettingSource XCache Source Repo] later, that use admin functions. 62 78 63 == D e/Assembler Opcode Functions ==79 == Dis/Assembler Opcode Functions == 64 80 {{{ 65 81 string xcache_asm(string filename)

