Widget template cache

greetings,

we have a widget for displaying and filtering the college Majors and Minors at:

we wanted to change the first column header to Areas of Study. i updated the xml template at:

_ingredients/templates/widgets/profiles.majors-and-minors.xml

and pushed to production but the new column header is not displayed. i cleared the cache for various items at:

https://www.carthage.edu/livewhale/?lw_debug=1&lw_debug_wc_extended=1

but that did not solve the problem. i noticed that the data file at:

livewhale/data/widget_templates/profiles.majors-and-minors.xml

is still the old xml file. i cannot update this file since it is owned by apache:apache with 644 permissions. there is another file:

livewhale/data/widget_templates/profiles.majors-and-minors.xml_717a46e0

that reflects the change but that’s not being used.

is there a way to clear the data files in that directory? if not, is there something i else that i should be doing?

thanks in advance.

yours,

steve

Hi Steve,

Thanks for writing – sometimes a new widget template doesn’t click into place in cases where a Saved Widget using that template has its own changes/overrides saved, or sometimes a syntax error in the .xml prevents LW from loading the new version so it falls back to a prior version.

The cache files in /livewhale/data are not user-editable (only system-editable) by design so they can only be edited by LW (and really, while you’re welcome to poke around out of curiosity I’d hate to think that anyone is spending time in that folder or being stressed by its contents!). LW’s cache-clearing mechanisms should detect and reflect changes as needed—sometimes re-saving a profile, widget, or logging out and logging in can help goose the cache if it’s not showing what you’d expect.

If those tactics (double-checking the .xml syntax of your template, and re-saving a profile to force the cache to clear) don’t do the trick, feel free to reach out via your personalized support email and we’re happy to take a look at the widget template with you to see if we can help with diagnosis of why your changes aren’t showing up on the live site. Thanks!

Karl

thanks, karl. all i changed was text: from “Majors & Minors” to “Areas of Study”. i can’t imagine that that would render the xml invalid. when you say “re-saving a profile”, what do you mean by that? the widget is pulling in pages and not profiles.

Hi Steve,

Sure, that might not be it at all, just trying to think of all the things it might be—the reason I said to re-save a profile is because _ingredients/templates/widgets/profiles.majors-and-minors.xml is a profiles widget template (the first block before the period in the filename indicates the data type). In those cases, re-saving a profile of the correct type will already clear all related widget caches. Maybe your page has a certain profile type that points to Majors/Minors pages via a custom URL or such, and that’s what’s being shown and filtered? We’re not able to log into your site or server via the forum, so let me know if there’s more advice we can give in the abstract, happy to keep chatting through things here, otherwise we can get more hands-on via email. Thanks Steve,

Karl