Page Menu
Home
In-Portal Phabricator
Search
Configure Global Search
Log In
Files
F726983
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
Mon, Jan 6, 4:42 AM
Size
1 KB
Mime Type
text/x-diff
Expires
Tue, Jan 7, 4:42 AM (3 d, 3 h ago)
Engine
blob
Format
Raw Data
Handle
536850
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