OpenSencillo  2015.002
template.php File Reference

Go to the source code of this file.

Functions

 quickcache_restore ()
 quickcache_write ($gzcontents, $size, $crc32)
 quickcache_do_gc ()
 quickcache_do_start ()
 quickcache_do_end ()

Function Documentation

Definition at line 78 of file template.php.

                             {
  // Add additional code you might require
}

Definition at line 62 of file template.php.

                            {
  // Implement garbage-collection
}

Definition at line 70 of file template.php.

                               {
  // Add additional code you might require
}

Definition at line 33 of file template.php.

                              {
  global $QUICKCACHE_TIME, $cache_key, $cachedata_gzdata, $cachedata_datasize, $cachedata_datacrc;

  // Implement restoring of cached data
  //
  // Use $cache_key to lookup data, use $JPACHE_TIME to check if
  // data is still valid.
  //
  // If data-retrieval was succesfull, you'll need to set
  // $cachedata_gzdata, $cachedata_datasize and $cachedata_datacrc
  // and return true, if unsuccesfull, return false.

  return false;
}
quickcache_write ( gzcontents,
size,
crc32 
)

Definition at line 51 of file template.php.

                                                      {
  global $QUICKCACHE_TIME, $QUICKCACHE_ON, $cache_key;

  // Implement writing of the data as given.
  // Store on $cache_key and add a 'field' for $QUICKCACHE_TIME
  // Store the 3 parameters seperatly
}
 All Data Structures Files Functions Variables