web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id : nOCk0dPU+whhkUoMHWPtMa
Power Apps - Building Power Apps
Unanswered

Gallery caching

Like (0) ShareShare
ReportReport
Posted on 10 Aug 2019 17:48:16 by Microsoft Employee

I'm seeing some caching related issues with o365 user photos and other gallery items.  I have a gallery to gallery drill down of screens connected, and when I move back and forth between galleries, sometimes I see stale objects from the previous gallery - from text to the user's photo.  The photo usually resolves itself within less than a second but sometimes the text properties will stay from one gallery to the next. I have a Refresh when I do my ClearCollect, but do I need to have a refresh on every screen load?

Categories:
  • v-yutliu-msft Profile Picture
    on 14 Aug 2019 at 09:13:56
    Re: Gallery caching

    Hi @russrimm ,

    Yes, you could use a Timer control to expand the waiting time.

    Try this:

    1)insert a people icon, insert an image

    Set the people icon's Visible: If(IsBlank(a),true,false)

    Set the image's Visible:If(!IsBlank(a),true,false)

    2)insert a Timer control

    Set the Timer control's Duration: 100     (waitting time)

                                    OnTimerEnd: Set(a,1)

     

    In this way, user will first view an icon and then view the image, which gives the app more waitting time.

     

    Best regards,

  • russrimm Profile Picture
    Microsoft Employee on 12 Aug 2019 at 04:14:53
    Re: Gallery caching

    Thanks, how would that be accomplished?  Right now, it's an image and is set to Office365Users.UserPhoto(ThisItem.'E-mail').  If I set it to a user icon, how would I have it change to the photo once the user photo loads?  Would I need to set a timer to modify the image after the timer runs out or is there an easier way?

    Thanks again

  • cwebb365 Profile Picture
    3,294 Most Valuable Professional on 11 Aug 2019 at 20:16:30
    Re: Gallery caching
    I see same issue with photos etc. probably a safe bet to set the control to an icon of a person etc. when navigating off the screen so when you go back you see that while it loads a new one.
  • RezaDorrani Profile Picture
    12,141 on 11 Aug 2019 at 19:22:57
    Re: Gallery caching

    Hi @russrimm 

     

    If you are using collections to drive the Gallery Items then you would have to make sure the data source associated with the collection is refreshed

    However, if your gallery is directly connected to the data source

     

    example : Gallery Items property is Filter(datasource, StartsWith("Title",TextInput.Text)) then in this case the data source will auto update and no refresh is required

     

    Collections are local data sourcs within your PowerApps and will not be auto refreshed

     

    Regards,

    Reza Dorrani

     

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 791 Most Valuable Professional

#2
MS.Ragavendar Profile Picture

MS.Ragavendar 410 Super User 2025 Season 2

#3
mmbr1606 Profile Picture

mmbr1606 275 Super User 2025 Season 2