Block hiding issue


I am trying to hide category side block on profile and my account pages.

So I made extra wrapper for products-categories: sidebox_category.tpl, activated this on all pages,

after I added the condition as follows:

```php {if $controller != 'profiles' && $controller != 'orders' && $controller != 'reward_points' && $controller != 'subscriptions' && $controller != 'auth'}

{$content|default:" "}


{/if} ```

then I clear cache from var/customer folder, and refresh needed pages. Everything works fine, but after while It starts to behave really weird, It means it dissappears also from categories, product, gift certificates pages.....

How can I fix it? Do I need to make more changes in other places???....