Page Menu
Home
In-Portal Phabricator
Search
Configure Global Search
Log In
Files
F1025960
D303.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Fri, Jun 13, 5:33 PM
Size
1 KB
Mime Type
text/x-diff
Expires
Sat, Jun 14, 5:33 PM (3 h, 40 m)
Engine
blob
Format
Raw Data
Handle
661601
Attached To
D303: INP-1699 - Don't cache language/theme while in temp mode
D303.diff
View Options
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
Log In to Comment