-
Notifications
You must be signed in to change notification settings - Fork 323
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refresh button should clear HTTP cache #11485
Comments
Plan is to
|
Maybe we can call the main section |
|
This is #11555 |
As an outsider to the face to face discussions I can only imagine what are the actual use-cases. The only one I see is:
and then I see a plan:
I don't see why the plan would be the best way to implement the above use-case? In my opinion, the following API would be sufficient, smaller, less cross-cutting change and possibly even more general way of controlled caching also satisfying the above use-case: diff --git distribution/lib/Standard/Base/0.0.0-dev/src/Runtime/Ref.enso distribution/lib/Standard/Base/0.0.0-dev/src/Runtime/Ref.enso
index 8e8edcde12..9265fb9fb0 100644
--- distribution/lib/Standard/Base/0.0.0-dev/src/Runtime/Ref.enso
+++ distribution/lib/Standard/Base/0.0.0-dev/src/Runtime/Ref.enso
@@ -8,16 +8,29 @@ type Ref
## PRIVATE
ADVANCED
Creates a new reference containing the provided value.
+ If `can_disappear` is set to `True` than the management
+ of the reference is controlled by the runtime which
+ may _set the reference to `Nothing` any time_. The
+ definition of _"any time"_ is intentionally vague, but
+ the known implementations reset the value when running
+ out of memory or when a user asks for _"clean re-execution"_
+ of a project.
Arguments:
- value: The value to be contained in the ref.
+ - can_disappear: Is the value eligible for being cleared by the system at any time?
> Example
Creating a new reference containing the value 7.
Ref.new 7
+
+ > Example
+ Cache a value, but allow the system to reclaim it.
+
+ Ref.new huge_data_downloaded_from_internet True
new : Any -> Ref
- new value = @Builtin_Method "Ref.new"
+ new value can_disappear=False = @Builtin_Method "Ref.new"
## GROUP Metadata
ICON metadata Of course, being an outsider, I cannot really know what other use-cases were discussed that lead to the selection of the current plan. Maybe my proposal doesn't address one of such discussed use-cases. However I cannot know unless the use-cases are summarized and written down. |
Jaroslav Tulach reports a new STANDUP for yesterday (2024-12-02): Progress: .
|
We need to connect refresh to the std-bits
EnsoHTTPResponseCache.clear()
in some way.Options:
The text was updated successfully, but these errors were encountered: