User Tools

Site Tools


how_to_use_cache

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
how_to_use_cache [2020/07/30 15:43]
admin [Basic Example]
how_to_use_cache [2020/07/30 15:44] (current)
admin [Output Buffer Recorder Example]
Line 24: Line 24:
 <file> <file>
   $my_cache_recorder_token = cache::token('my_unique_cache_name', array('dependency'), 'file', 3600);   $my_cache_recorder_token = cache::token('my_unique_cache_name', array('dependency'), 'file', 3600);
-  if (cache::capture($my_cache_recorder_token, 900)) {+  if (cache::capture($my_cache_recorder_token, 900) === null) {
      
     echo 'Some output';     echo 'Some output';
how_to_use_cache.txt ยท Last modified: 2020/07/30 15:44 by admin