DrupalBin
Submit Code
About
Recent Posts
Code
1 hour 18 min
ago
Code
4 hours 30 min
ago
Fix for Code
4 hours 40 min
ago
d5, hook_comment, trying to force an input filter format
7 hours 58 min
ago
more
Tags
CCK
drupal
fapi
jquery
menu
module
Panels
php
simpletest
test
theme
views
more tags
User login
Log in using OpenID:
What is OpenID?
Username:
*
Password:
*
Create new account
Request new password
Log in using OpenID
Cancel OpenID login
Home
cache
serialize is bad, mkay
November 9, 2008 - 8:49pm — Anonymous
/**
* Wrapper function to perform string to array conversion of lookup cache.
*/
function
_registry_get_lookup_cache
(
)
{
$lookup_cache
=
array
(
)
;
cache
registry
serialize
Add new comment
Read more
Changing Form Cache for AHAH manipulation
September 25, 2008 - 9:22am — Anonymous
function
ehu_photos_js
(
)
{
$cache
=
cache_get
(
'form_'
.
$_POST
[
'form_build_id'
]
,
'cache_form'
)
;
$node
=
(
object
)
$_POST
;
$form
=
$cache
->
data
;
$form_state
=
array
(
'values'
=>
$_POST
)
;
ahah
cache
module
Read more
Fix for user warning: in /.../html/includes/cache.inc on line 109." message when savig module page (admin/build/modules)
September 12, 2008 - 2:42am — Anonymous
function
cache_set
(
$cid
,
$data
,
$table
=
'cache'
,
$expire
=
CACHE_PERMANENT
,
$headers
=
NULL
)
{
$serialized
=
0
;
if
(
is_object
(
$data
)
||
is_array
(
$data
)
)
{
$data
=
serialize
(
$data
)
;
cache
Read more
user warning: in /.../html/includes/cache.inc on line 109." message when savig module page (admin/build/modules)
September 12, 2008 - 2:41am — Anonymous
db_query
(
"UPDATE {"
.
$table
.
"} SET data = %b, created = %d, expire = %d, headers = '%s', serialized = %d WHERE cid = '%s'"
,
$data
,
$created
,
$expire
,
$headers
,
$serialized
,
$cid
)
;
cache
Cache Saving test
July 1, 2008 - 10:26am — Anonymous
class
CacheSavingCase
extends
DrupalWebTestCase
{
/**
* Implementation of getInfo().
*/
function
getInfo
(
)
{
return
array
(
'name'
=>
t
(
'Cache saving test'
)
,
cache
Read more