Changeset 32406 in spip-zone


Ignore:
Timestamp:
Oct 27, 2009, 10:47:25 PM (11 years ago)
Author:
cedric@…
Message:

renomer W() en Cache() pour etre moins cryptique

File:
1 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/xcache/inc/xcache.php

    r32392 r32406  
    1212// In any cacheable function add at top: if (null!==$W=W())return$W;
    1313
    14 if (!function_exists('W')) {
     14if (!function_exists('Cache')) {
    1515
    1616# xcache ?
    1717if (function_exists('xcache_set')) {
    18         function W($vars=null, $ttl=3600) {
     18        function Cache($vars=null, $ttl=3600) {
    1919                $trace = debug_backtrace();
    2020                $trace = $trace[1];
     
    3535# elementary compatibility
    3636else {
    37         function W(){return null;}
     37        function Cache(){return null;}
    3838}
    3939
Note: See TracChangeset for help on using the changeset viewer.