Index: application.php
===================================================================
--- application.php (revision 13168)
+++ application.php (working copy)
@@ -783,11 +783,11 @@
$serial_name = $pascal_case_prefix . (isset($id) ? 'IDSerial:' . $id : 'Serial');
if ($increment) {
- if (defined('DEBUG_MODE') && DEBUG_MODE && $this->isDebugMode()) {
- $this->Application->Debugger->appendHTML('Incrementing serial: ' . $serial_name . '.');
- }
+ if ($this->isCachingType(CACHING_TYPE_MEMORY)) {
+ if (defined('DEBUG_MODE') && DEBUG_MODE && $this->isDebugMode()) {
+ $this->Application->Debugger->appendHTML('Incrementing serial: ' . $serial_name . '.');
+ }
- if ($this->isCachingType(CACHING_TYPE_MEMORY)) {
$this->setCache($serial_name, (int)$this->getCache($serial_name) + 1);
}