function panels_cache_set in Panels 6.2
Same name and namespace in other branches
- 5.2 panels.module \panels_cache_set()
- 6.3 panels.module \panels_cache_set()
- 7.3 panels.module \panels_cache_set()
Save the edited object into the cache.
14 calls to panels_cache_set()
- panels_ajax_add_pane_config in includes/
display-edit.inc - AJAX entry point for to configure a pane that has just been added.
- panels_ajax_cache_method in includes/
display-edit.inc - Entry point for AJAX modal: configure pane cache method
- panels_ajax_cache_settings in includes/
display-edit.inc - Handle the cache settings form
- panels_ajax_configure_pane in includes/
display-edit.inc - AJAX entry point for to configure a pane that has just been added.
- panels_ajax_context_item_add in includes/
common-context.inc - Ajax entry point to add an context
File
- ./
panels.module, line 265 - panels.module
Code
function panels_cache_set($obj, $did, $cache) {
panels_cache_clear($obj, $did);
db_query("INSERT INTO {panels_object_cache} (sid, obj, did, data, timestamp) VALUES ('%s', '%s', %d, '%s', %d)", session_id(), $obj, $did, serialize($cache), time());
}