Cache and Drupal

Loading...

Flash Player 9 (or above) is needed to view presentations.
We have detected that you do not have it on your computer. To install it, go here.

0 comments

Post a comment

    Post a comment
    Embed Video
    Edit your comment Cancel

    Favorites, Groups & Events

    Cache and Drupal - Presentation Transcript

    1. Cache a Drupalban
    2. A cache (pronounced /kæʃ/ ) is a collection of data duplicating original values Stored elsewhere or computed earlier, where the original data is expensive to fetch (owing to longer access time) or to compute, compared to the cost of reading the cache. Wikipedia
    3.  
    4.  
    5.  
    6. Op code caches
      • APC
      • Eaccelerator
      • XCache
      • IonCube
      • Turck MMCache
      • Nusphere PhpExpress
      • Zend Optimizer+
      • Zend Platform
    7. function node_load( $param = array() , $revision = NULL , $reset = NULL ) { static $nodes = array() ; if ( $reset ) { $nodes = array() ; } … if ( isset ( $nodes [ $param ])) { return is_object( $nodes [ $param ]) ? drupal_clone( $nodes [ $param ]) : $nodes [ $param ]; } … return $node ; }
    8. cache_get( $cid , $table = 'cache' ) cache_set( $cid , $data , $table = 'cache' , $expire = CACHE_PERMANENT, $headers = NULL )
      • cache
      • cache_block
      • cache_content
      • cache_filter
      • cache_form
      • cache_menu
      • cache_page
      • cache_update
    9. +------------+--------------+------+-----+---------+-------+ | Field | Type | Null | Key | Default | Extra | +------------+--------------+------+-----+---------+-------+ | cid | varchar(255) | NO | PRI | | | | data | longblob | YES | | NULL | | | expire | int(11) | NO | MUL | 0 | | | created | int(11) | NO | | 0 | | | headers | text | YES | | NULL | | | serialized | smallint(6) | NO | | 0 | | +------------+--------------+------+-----+---------+-------+
    10. function mymodule_schema() { $schema = array() ; $schema [ 'cache_mymodule' ] = drupal_get_schema_unprocessed( 'system' , 'cache' ); $schema [ 'cache_mymodule' ][ 'description' ] = '' ; return $schema ; }
    11. Cache Router
      • APC
      • Database
      • eAccelerator
      • File
      • Memcache
      • Memcached (Alpha)
      • XCache
    12. Memcache
    SlideShare Zeitgeist 2009

    + Kornel LugosiKornel Lugosi Nominate

    custom

    80 views, 0 favs, 0 embeds more stats

    I spoke about the cache layer of Drupal at the Univ more

    More info about this document

    © All Rights Reserved

    Go to text version

    • Total Views 80
      • 80 on SlideShare
      • 0 from embeds
    • Comments 0
    • Favorites 0
    • Downloads 4
    Most viewed embeds

    more

    All embeds

    less

    Flagged as inappropriate Flag as inappropriate
    Flag as inappropriate

    Select your reason for flagging this presentation as inappropriate. If needed, use the feedback form to let us know more details.

    Cancel
    File a copyright complaint
    Having problems? Go to our helpdesk?

    Categories