Invision Community 4: SEO, prepare for v5 and dormant account notifications Matt November 11, 2024Nov 11
Posted October 19, 20204 yr 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?
October 19, 20204 yr Author Use \IPS\Widget instead of \IPS\Content\Widget - completely rewrite widget.
October 20, 20204 yr Solution 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.