eaccelerator_unlock($ key) Release lock based on $key eaccelerator_cache_output($key, $eval_code, $ttl=0) Cache the output of the $eval_code code for $ttl seconds (the $ttl parameter is the same as eacclerator_put) For example: eaccelerator_cache_result($key, $eval_code, $ttl=0) Cache the execution result of the $eval_code code for $ttl seconds, (the $ttl parameter is the same as eacclerator_put), similar to cache_output For example: eaccelerator_cache_page($key, $ttl=0 ) Cache the current full page for $ttl seconds. For example:
eaccelerator_rm_page($key) Delete the cache executed by eaccelerator_cache_page(), the parameter is also $key 2. Use eAccelerator to accelerate PHP code In addition, PHPCMS has integrated support for eAccelerator. The following is a piece of code from PHPCMS.
|