D
D
DigitalHNE2016-03-21 17:50:39
CMS
DigitalHNE, 2016-03-21 17:50:39

Site on CMS Drupal refers to non-existent content in the table?

As a result of some error, the cache_form table swelled up to 2.5GB, they cleaned it up, the site started working again and began to spit with such an error
de3a22a3e357443a92ffb7bc79b30a82.jpg
. Tell me, how to fix this disgrace?
If anyone needs the cache.inc code

function cache_set($cid, $data, $table = 'cache', $expire = CACHE_PERMANENT, $headers = NULL) {
  $serialized = 0;
  if (is_object($data) || is_array($data)) {
    $data = serialize($data);
    $serialized = 1;
  }
  $created = time();
  db_query("UPDATE {". $table ."} SET data = %b, created = %d, expire = %d, headers = '%s', serialized = %d WHERE cid = '%s'", $data, $created, $expire, $headers, $serialized, $cid);
  if (!db_affected_rows()) {
    @db_query("INSERT INTO {". $table ."} (cid, data, created, expire, headers, serialized) VALUES ('%s', %b, %d, %d, '%s', %d)", $cid, $data, $created, $expire, $headers, $serialized);
  }
}

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question