]> git.mxchange.org Git - core.git/blobdiff - framework/main/classes/database/class_BaseDatabaseWrapper.php
Continued:
[core.git] / framework / main / classes / database / class_BaseDatabaseWrapper.php
index 3643bb5735fed694a3c17c384d95d8baf6040adc..d20190e5cec156f6165c5a2528ef90f776b746d6 100644 (file)
@@ -97,6 +97,7 @@ abstract class BaseDatabaseWrapper extends BaseFrameworkSystem {
         */
        protected function queryInsertDataSet (StoreableCriteria $dataSetInstance, array $onlyKeys = array()) {
                // Default cache key is NULL
+               //* DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput(sprintf('BASE-WRAPPER: dataSetInstance=%s,onlyKeys()=%d - CALLED!', $dataSetInstance->__toString(), count($onlyKeys)));
                $cacheKey = NULL;
 
                // Is cache enabled?
@@ -107,13 +108,18 @@ abstract class BaseDatabaseWrapper extends BaseFrameworkSystem {
                } // END - if
 
                // Does this key exists in cache?
+               //* DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput(sprintf('BASE-WRAPPER: cacheKey[%s]=%s', gettype($cacheKey), $cacheKey));
                if (($this->getConfigInstance()->getConfigEntry('database_cache_enabled') === true) && ($this->cacheInstance->offsetExists($cacheKey))) {
                        // Purge the cache
+                       //* DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput(sprintf('BASE-WRAPPER: Calling this->cacheInstance->purgeOffset(%s) ...', $cacheKey));
                        $this->cacheInstance->purgeOffset($cacheKey);
                } // END - if
 
                // Handle it over to the middleware
                FrameworkBootstrap::getDatabaseInstance()->queryInsertDataSet($dataSetInstance);
+
+               // Trace message
+               //* DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('BASE-WRAPPER: EXIT!');
        }
 
        /**