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

Keep cached template copy as long as possible #20

Closed
ansell opened this issue Aug 17, 2020 · 10 comments · May be fixed by #22
Closed

Keep cached template copy as long as possible #20

ansell opened this issue Aug 17, 2020 · 10 comments · May be fixed by #22
Assignees

Comments

@ansell
Copy link

ansell commented Aug 17, 2020

Rather than wiping the template cache before fetching, we should be keeping the cached copy for as long as possible to avoid www.ala.org.au outages from causing other applications to crash.

@ansell ansell changed the title Keep cached copy as long as possible Keep cached template copy as long as possible Aug 17, 2020
@ansell
Copy link
Author

ansell commented Aug 17, 2020

@Rita-C
Copy link
Contributor

Rita-C commented Sep 8, 2020

Hi @ansell,
Was the issue that page was not displayed properly if the template was not fetched and the cached one was removed?

@ansell
Copy link
Author

ansell commented Sep 8, 2020

Yes, in some cases the entire website fails currently because the cached copy is removed before a new template is successfully fetched.

@Rita-C
Copy link
Contributor

Rita-C commented Sep 10, 2020

@nickdos @ansell , I created a branch there is no dev, do we need to update the version number for this change?

@ansell
Copy link
Author

ansell commented Sep 10, 2020

Yes, this will need a new version number to release the new version of the plugin.

@nickdos
Copy link
Contributor

nickdos commented Sep 29, 2020

Is this ready for QA?

@ansell
Copy link
Author

ansell commented Sep 29, 2020

It may need to be integrated into an application first.

@Rita-C
Copy link
Contributor

Rita-C commented Sep 29, 2020

PR for @sbearcsiro to review, I've tested it locally as an embedded plugin in lists, not sure how/where to deploy the change.

@nickdos
Copy link
Contributor

nickdos commented Sep 29, 2020

@Rita-C if you deploy lists-test.ala.org.au I could QA test it there. This might need a separate commonui-bs3 test set of template files to point to, depending on the nature of the changes.

@ansell
Copy link
Author

ansell commented Sep 30, 2020

@matthewandrews What is the best test system to point to for commonui that we could take offline for a few hours to test whether the caching fix is working?

Rita-C added a commit to AtlasOfLivingAustralia/specieslist-webapp that referenced this issue Oct 1, 2020
Rita-C added a commit that referenced this issue Oct 19, 2020
Rita-C pushed a commit that referenced this issue Oct 19, 2020
Signed-off-by: Peter Ansell <[email protected]>

issue #20 : Only replace cache if template is retrieved successfully

Signed-off-by: Peter Ansell <[email protected]>
@Rita-C Rita-C closed this as completed Nov 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants