Page Menu
Home
In-Portal Phabricator
Search
Configure Global Search
Log In
Files
F1046475
D303.id.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
Sat, Jun 28, 7:25 PM
Size
1 KB
Mime Type
text/x-diff
Expires
Sun, Jun 29, 7:25 PM (12 h, 24 m)
Engine
blob
Format
Raw Data
Handle
676325
Attached To
D303: INP-1699 - Don't cache language/theme while in temp mode
D303.id.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