Menu

#6 "OPTIMIZE TABLE" never run

open
nobody
None
5
2006-12-08
2006-12-08
No

There the following line in enableCache():

$db->query('OPTIMIZE TABLE ' . $this->cache_table);

The problem here is, that $this->cache_table gets set later in the function (at the end of the "db" block).

To fix this, use:
$db->query('OPTIMIZE TABLE ' . $table);

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.