8000 Adjust the "clean_cache" command so it is scheduled by the portal · Issue #1511 · aces/cbrain · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Adjust the "clean_cache" command so it is A105 scheduled by the portal #1511

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

Open
prioux opened this issue May 8, 2025 · 0 comments
Open

Adjust the "clean_cache" command so it is scheduled by the portal #1511

prioux opened this issue May 8, 2025 · 0 comments
Labels
Admin Features or bugs related to administrative features BAC-subsystem Priority: Normal Refactoring

Comments

@prioux
Copy link
Member
prioux commented May 8, 2025

We have a mechanism such that a user or admin can request the cached
content of some files be purged from the cache of a Bourreau or Portal.

Currently,

  1. the interface provides a form (see action cleanup_caches() in BourreauxController)
  2. then the values for what to clean are packaged into a RemoteCommand object (again see the code later in that method, when it calls send_command_clean_cache())
  3. on the Bourreau side, the command is received and the method process_command_clean_cache() is called (see that in remote_resource.rb)
  4. that method creates one (or several) BackgroundActivity objects of type BackgroundActivity::CleanCache.

There is no need to send the information all the way to the Bourreau to get it to build a BackgroundActivity object. The portal interface could easily do that, so that steps 2 and 3 above could disappear, and step 4 could create the BAC(s).

@prioux prioux added Refactoring Priority: Normal BAC-subsystem Admin Features or bugs related to administrative features labels May 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Admin Features or bugs related to administrative features BAC-subsystem Priority: Normal Refactoring
Projects
None yet
Development

No branches or pull requests

1 participant
0