Skip to content
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

Only fetch files if the folder has been updated #186

Closed
oparoz opened this issue Jun 24, 2015 · 3 comments
Closed

Only fetch files if the folder has been updated #186

oparoz opened this issue Jun 24, 2015 · 3 comments
Milestone

Comments

@oparoz
Copy link
Contributor

oparoz commented Jun 24, 2015

Concept

Currently, every time we enter a folder, we ask the server if there has been a change since the last time we retrieved the files, but we can do better and keep the view up to date in real-time.

Specs

  • [JS] Connect to live stream
  • [PHP] Catch filesystem changes and update stream
  • [JS] Invalidate cache if there has been a change

Requirements

  • Redis server. Local or remote if your host doesn't offer that service
  • Predis. Pure PHP redis client
  • Phpiredis (optional for people who need even more speed) and its dependency hiredis

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

@oparoz
Copy link
Contributor Author

oparoz commented Jun 24, 2015

Seems hooks are broken on 8.0 and 8.1. Waiting for confirmation and hopefully a quick resolution.

@oparoz
Copy link
Contributor Author

oparoz commented Jun 29, 2015

The official way of using Hooks is documented, but has not been implemented... Still there are ways to use them using other methods.

On its own, I'm not sure this is necessary as it only works after the first request, but the mechanism could be used to pre-load the content of sub-albums

@oparoz
Copy link
Contributor Author

oparoz commented Sep 4, 2016

This issue was moved to nextcloud/gallery#37

@oparoz oparoz closed this as completed Sep 4, 2016
@oparoz oparoz removed the ready label Sep 4, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant