Cache from flask_caching & multi-page apps

How can we reference app.server from a page in multi-page app?

from app import app results in a circular input, while dash.getapp().server (following example below) does not work, giving me a KeyError: 'cache'.

Would appreciate any advice!

EDIT: assigning the dataframe to a variable, and referencing the variable seems to work

2 Likes