Manual app refresh confirmation

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • a.slyzhko
    Member
    • Oct 2023
    • 90

    Manual app refresh confirmation

    Hi there!

    I've noticed that when I make changes to our CRM instance (e.g., modifying custom front-end views), our users sometimes don't see the updates right away because they don't frequently reload pages. I'm wondering if there's a way to add a button to the admin panel that, when clicked, displays a banner on users' screens instructing them to reload the page, just like after extension load. I'm familiar with customizing views and can add this button to the admin panel, but I need to know what action to call when the button is clicked. Thanks in advance for your help!
  • Firyo
    Senior Member
    • Jun 2022
    • 134

    #2
    Hi there,

    You can use the command
    Code:
    php command.php update-app-timestamp
    (https://docs.espocrm.com/administrat...-app-timestamp) in order to display the modal to the currently logged users. And most importantly, "clear the JS/TPL cache".

    You could add a custom made button inside your Espo admin that would call an AJAX that will call
    PHP Code:
    updateAppTimestamp() 
    
    inside the
    PHP Code:
    application/Espo/Core/DataManager.php 
    
    Regards,
    Firyo.

    Comment

    Working...