Index: branches/5.1.x/core/units/structure/structure_config.php =================================================================== diff -u -N -r13166 -r13168 --- branches/5.1.x/core/units/structure/structure_config.php (.../structure_config.php) (revision 13166) +++ branches/5.1.x/core/units/structure/structure_config.php (.../structure_config.php) (revision 13168) @@ -1,6 +1,6 @@ 'CATEGORY', 'PermSection' => Array('main' => 'CATEGORY:in-portal:structure', 'email' => 'in-portal:configemail'), - 'ListSQLs' => Array( ''=> ' SELECT %1$s.* %2$s - FROM %1$s - LEFT JOIN '.TABLE_PREFIX.'PermCache ON '.TABLE_PREFIX.'PermCache.CategoryId = %1$s.CategoryId'), + 'ListSQLs' => Array ( + '' => ' SELECT %1$s.* %2$s + FROM %1$s + LEFT JOIN '.TABLE_PREFIX.'PermCache ON '.TABLE_PREFIX.'PermCache.CategoryId = %1$s.CategoryId', + '-virtual' => 'SELECT %1$s.* %2$s FROM %1$s', + ), - 'ItemSQLs' => Array( ''=> ' SELECT %1$s.* %2$s - FROM %1$s - LEFT JOIN '.TABLE_PREFIX.'PermCache ON '.TABLE_PREFIX.'PermCache.CategoryId = %1$s.CategoryId'), - 'SubItems' => Array('content'), 'ListSortings' => Array( @@ -97,7 +96,8 @@ 'CalculatedFields' => Array( '' => Array( 'CurrentSort' => "REPLACE(ParentPath, CONCAT('|', ".'%1$s'.".CategoryId, '|'), '')", - ) + ), + '-virtual' => Array (), ), 'Fields' => Array ( @@ -168,6 +168,19 @@ 'FormSubmittedTemplate' => Array('type' => 'string', 'default' => null), 'FriendlyURL' => Array ('type' => 'string', 'not_null' => 1, 'default' => ''), 'ThemeId' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), + + 'EnablePageCache' => Array ( + 'type' => 'int', + 'formatter' => 'kOptionsFormatter', 'options' => Array (1 => 'la_Yes', 0 => 'la_No'), 'use_phrases' => 1, + 'not_null' => 1, 'default' => 0 + ), + 'OverridePageCacheKey' => Array ( + 'type' => 'int', + 'formatter' => 'kOptionsFormatter', 'options' => Array (1 => 'la_Yes', 0 => 'la_No'), 'use_phrases' => 1, + 'not_null' => 1, 'default' => 0 + ), + 'PageCacheKey' => Array ('type' => 'string', 'max_len' => 255, 'not_null' => 1, 'default' => ''), + 'PageExpiration' => Array ('type' => 'int', 'default' => NULL), ), 'VirtualFields' => Array(