Page MenuHomeIn-Portal Phabricator

D303.diff
No OneTemporary

File Metadata

Created
Mon, Jan 6, 4:42 AM

D303.diff

Index: branches/5.2.x/core/units/languages/languages_item.php
===================================================================
--- branches/5.2.x/core/units/languages/languages_item.php
+++ branches/5.2.x/core/units/languages/languages_item.php
@@ -194,6 +194,10 @@
*/
public function Load($id, $id_field_name = null, $cachable = true)
{
+ if ( $cachable && $this->IsTempTable() ) {
+ $cachable = false;
+ }
+
$default = false;
if ($id == 'default') {
// domain based primary language
@@ -299,4 +303,4 @@
return true;
}
- }
\ No newline at end of file
+ }
Index: branches/5.2.x/core/units/themes/theme_item.php
===================================================================
--- branches/5.2.x/core/units/themes/theme_item.php
+++ branches/5.2.x/core/units/themes/theme_item.php
@@ -18,6 +18,10 @@
{
public function Load($id, $id_field_name = null, $cachable = true)
{
+ if ( $cachable && $this->IsTempTable() ) {
+ $cachable = false;
+ }
+
$default = false;
if ($id == 'default') {
// domain based primary theme

Event Timeline