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

Disable BOOST image caching when using Graph Zoom features #4067

Closed
browniebraun opened this issue Jan 21, 2021 · 1 comment
Closed

Disable BOOST image caching when using Graph Zoom features #4067

browniebraun opened this issue Jan 21, 2021 · 1 comment
Assignees
Labels
bug Undesired behaviour
Milestone

Comments

@browniebraun
Copy link
Member

Describe the bug

First time you try to zoom into a graph within graph tree view mode
correct graph requests covering that new time window will be generated and send by jQuery.zoom, but Cacti returns cached images from Boost. This is caused by the value of presets.

To Reproduce

Steps to reproduce the behavior:

  1. Go to 'Graph Tree View'

  2. Click on 'Preset' -> choose "Last Day" [SCREENSHOT_1]

  3. Scroll down to the first graph and select with your mouse a timeframe to zoom in. [SCREENSHOT_2]

  4. See that the same graphs are shown like before. [[SCREENSHOT_3] => THIS IS THE ERROR]

  5. Now "presets" are set to "Custom"

  6. [SECOND TRY] Zoom in again and graphs are returned with the selected timeframe. [SCREENSHOT_3]

Expected behavior

Timeframe of graphs should always match with the selected timeframe Zoom has calculated.

Screenshots

[SCREENSHOT_1]
image

[SCREENSHOT_2&3]
image
image

[SCREENSHOT_4]
image

Workaround

Disable image caching under Settings-> Performance

Solution

Simply updating dropdown field "presets" in Zoom does not work from my point of view. I would suggest to add something like '&no_cache=true' to the URLs Zoom generates and to force Cacti bypassing the Boost image cache whenever this option is requested.

@browniebraun browniebraun added bug Undesired behaviour unverified Some days we don't have a clue labels Jan 21, 2021
@browniebraun browniebraun self-assigned this Jan 21, 2021
browniebraun added a commit that referenced this issue Jan 21, 2021
already existing but not covered by initializeGraphs() and not taken into account by jQueryZoom.

Fixes #4067
@browniebraun
Copy link
Member Author

fixed

@browniebraun browniebraun changed the title Zoom - Issues with BOOST image cache Zoom does not initiate to bypass BOOST image cache Jan 21, 2021
@browniebraun browniebraun removed the unverified Some days we don't have a clue label Jan 21, 2021
@TheWitness TheWitness added this to the v1.2.17 milestone Jan 22, 2021
@github-actions github-actions bot locked and limited conversation to collaborators Apr 23, 2021
@netniV netniV changed the title Zoom does not initiate to bypass BOOST image cache Disable BOOST image caching when using Graph Zoom features Apr 30, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Undesired behaviour
Projects
None yet
Development

No branches or pull requests

2 participants