Linux polon 4.19.0-27-amd64 #1 SMP Debian 4.19.316-1 (2024-06-25) x86_64
Apache/2.4.59 (Debian)
: 10.2.73.233 | : 3.149.243.29
Cant Read [ /etc/named.conf ]
5.6.40-64+0~20230107.71+debian10~1.gbp673146
www-data
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
home /
baltic /
web /
modules /
ctools /
help /
[ HOME SHELL ]
Name
Size
Permission
Action
about.html
4.4
KB
-rw-r--r--
ajax.html
0
B
-rw-r--r--
collapsible-div.html
22
B
-rw-r--r--
context-access.html
687
B
-rw-r--r--
context-arguments.html
1.1
KB
-rw-r--r--
context-content.html
6.57
KB
-rw-r--r--
context-context.html
661
B
-rw-r--r--
context-relationships.html
559
B
-rw-r--r--
context.html
0
B
-rw-r--r--
css.html
22
B
-rw-r--r--
ctools.help.ini
1.47
KB
-rw-r--r--
dependent.html
22
B
-rw-r--r--
dropbutton.html
22
B
-rw-r--r--
dropdown.html
22
B
-rw-r--r--
export-ui.html
3.95
KB
-rw-r--r--
export.html
17.27
KB
-rw-r--r--
form.html
22
B
-rw-r--r--
modal.html
13.24
KB
-rw-r--r--
object-cache.html
4.22
KB
-rw-r--r--
plugins-api.html
2.24
KB
-rw-r--r--
plugins-creating.html
10.85
KB
-rw-r--r--
plugins-implementing.html
2.95
KB
-rw-r--r--
plugins.html
1.34
KB
-rw-r--r--
wizard.html
13.87
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : object-cache.html
<p>The CTools Object Cache is a specialized cache for storing data that is non-volatile. This differs from the standard Drupal cache mechanism, which is volatile, meaning that the data can be cleared at any time and it is expected that any cached data can easily be reconstructed. In contrast, data stored in this cache is not expected to be reconstructable. It is primarily used for storing user input which is retrieved in stages, allowing for more complex user interface interactions.</p> <p>The object cache consists of 3 normal functions for cache maintenance, and 2 additional functions to facilitate locking.</p> <p>To use any of these functions, you must first use ctools_include:</p> <pre> ctools_include('object-cache'); </pre> <pre> /** * Get an object from the non-volatile ctools cache. * * This function caches in memory as well, so that multiple calls to this * will not result in multiple database reads. * * @param $obj * A 128 character or less string to define what kind of object is being * stored; primarily this is used to prevent collisions. * @param $name * The name of the object being stored. * @param $skip_cache * Skip the memory cache, meaning this must be read from the db again. * * @return * The data that was cached. */ function ctools_object_cache_get($obj, $name, $skip_cache = FALSE) { </pre> <pre> /** * Store an object in the non-volatile ctools cache. * * @param $obj * A 128 character or less string to define what kind of object is being * stored; primarily this is used to prevent collisions. * @param $name * The name of the object being stored. * @param $cache * The object to be cached. This will be serialized prior to writing. */ function ctools_object_cache_set($obj, $name, $cache) { </pre> <pre> /** * Remove an object from the non-volatile ctools cache * * @param $obj * A 128 character or less string to define what kind of object is being * stored; primarily this is used to prevent collisions. * @param $name * The name of the object being removed. */ function ctools_object_cache_clear($obj, $name) { </pre> <p>To facilitate locking, which is the ability to prohibit updates by other users while one user has an object cached, this system provides two functions:</p> <pre> /** * Determine if another user has a given object cached. * * This is very useful for 'locking' objects so that only one user can * modify them. * * @param $obj * A 128 character or less string to define what kind of object is being * stored; primarily this is used to prevent collisions. * @param $name * The name of the object being removed. * * @return * An object containing the UID and updated date if found; NULL if not. */ function ctools_object_cache_test($obj, $name) { </pre> <p>The object returned by ctools_object_cache_test can be directly used to determine whether a user should be allowed to cache their own version of an object.</p> <p>To allow the concept of breaking a lock, that is, clearing another users changes:</p> <pre> /** * Remove an object from the non-volatile ctools cache for all session IDs. * * This is useful for clearing a lock. * * @param $obj * A 128 character or less string to define what kind of object is being * stored; primarily this is used to prevent collisions. * @param $name * The name of the object being removed. */ function ctools_object_cache_clear_all($obj, $name) { </pre> <p>Typical best practice is to use wrapper functions such as these:</p> <pre> /** * Get the cached changes to a given task handler. */ function delegator_page_get_page_cache($name) { ctools_include('object-cache'); $cache = ctools_object_cache_get('delegator_page', $name); if (!$cache) { $cache = delegator_page_load($name); $cache->locked = ctools_object_cache_test('delegator_page', $name); } return $cache; } /** * Store changes to a task handler in the object cache. */ function delegator_page_set_page_cache($name, $page) { ctools_include('object-cache'); $cache = ctools_object_cache_set('delegator_page', $name, $page); } /** * Remove an item from the object cache. */ function delegator_page_clear_page_cache($name) { ctools_include('object-cache'); ctools_object_cache_clear('delegator_page', $name); } </pre>
Close