desti Posted October 19, 2020 Share Posted October 19, 2020 My users ask me to make widgets visibility control ( ips widgets topicFeed, imageFeed, etc ). I tried to do it in system/content/widget.php, but, apparently, everything is cached there and even the condition (if member_id = = 1) die; does not work. Any idea or is that impossible? Link to comment Share on other sites More sharing options...
desti Posted October 19, 2020 Author Share Posted October 19, 2020 Use \IPS\Widget instead of \IPS\Content\Widget - completely rewrite widget. Link to comment Share on other sites More sharing options...
Solution bfarber Posted October 20, 2020 Solution Share Posted October 20, 2020 Yes, widgets are designed to cache. You can't really do per-user things in the out of the box widgets, but you can create new ones that don't implement caching if needed. desti 1 Link to comment Share on other sites More sharing options...
Recommended Posts