Changeset 251

Show
Ignore:
Timestamp:
06/07/07 06:34:23 (1 year ago)
Author:
bermiferrer
Message:

Performance Improvement and Annoyance removal. Routes where loaded twice, so now AkActionController::mapRoutes is the responsible of loading the Routing Map into Ak::toUrl. By popular demand no more clearing sessions on dev mode to avoid DB schema cache. It has a bad performance impact on development mode, but NOT on production mode.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/config/development.php

    r2 r251  
    66define('AK_ENABLE_STRICT_XHTML_VALIDATION', false); // At least until the validator is fully tested 
    77 
     8// Forces loading database schema on every call 
     9unset($_SESSION['__activeRecordColumnsSettingsCache']); 
    810 
    911?> 
  • trunk/lib/AkActionController.php

    r249 r251  
    19951995            $Map =& AkRouter(); 
    19961996            include(AK_ROUTES_MAPPING_FILE); 
     1997            // Set this routes for being used via Ak::toUrl 
     1998            Ak::toUrl($Map,true); 
    19971999            $this->Request->checkForRoutedRequests($Map); 
    19982000        }