[ Index ] |
|
Code source de Drupal 5.3 |
[Code source] [Imprimer] [Statistiques]
(pas de description)
Poids: | 167 lignes (6 kb) |
Inclus ou requis: | 0 fois |
Référencé: | 1 fois |
Nécessite: | 0 fichiers |
cache_get($key, $table = 'cache') X-Ref |
Return data from the persistent cache. param: $key param: $table |
cache_set($cid, $table = 'cache', $data, $expire = CACHE_PERMANENT, $headers = NULL) X-Ref |
Store data in the persistent cache. The persistent cache is split up into four database tables. Contributed modules can add additional tables. 'cache_page': This table stores generated pages for anonymous users. This is the only table affected by the page cache setting on the administrator panel. 'cache_menu': Stores the cachable part of the users' menus. 'cache_filter': Stores filtered pieces of content. This table is periodically cleared of stale entries by cron. 'cache': Generic cache storage table. The reasons for having several tables are as follows: - smaller tables allow for faster selects and inserts - we try to put fast changing cache items and rather static ones into different tables. The effect is that only the fast changing tables will need a lot of writes to disk. The more static tables will also be better cachable with MySQL's query cache param: $cid param: $table param: $data param: $expire param: $headers |
cache_clear_all($cid = NULL, $table = NULL, $wildcard = FALSE) X-Ref |
Expire data from the cache. If called without arguments, expirable entries will be cleared from the cache_page table. param: $cid param: $table param: $wildcard |
Généré le : Fri Nov 30 16:20:15 2007 | par Balluche grâce à PHPXref 0.7 |
![]() |