PDA

View Full Version : Menu is not getting refreshed



Hitesh
17-Jan-2008, 09:38 AM
Hi All,

I was going trough the live demo of electos on the site, in that I found one
issue.
I have added a new page and after that when I have deleted that page from
the studio and when I refreshed the website then menu is not getting
refreshed.
i.e. The deleted page remains as it is in menu.
--
Warm Regards,
Hitesh N.Kulkarni.
Epura India.
Itrix Inc.

DavidMartinko
17-Jan-2008, 10:05 AM
This sounds like a cache issue.

You have to disable caching of ASP pages in IIS... and you need to check
your browser settings to make sure it is set to get lastest page on each
visit.

If you clear your browser history files, then the page will display... It's
one of those 2 things.

--
David Martinko
Custom Software Developer
Redeemed Software Company
www.RedeemedSoftware.com
248-535-7495
"Hitesh" <hitesh@itrixinc.com> wrote in message
news:ZDL8fZRWIHA.1792@dacmail.dataaccess.com...
> Hi All,
>
> I was going trough the live demo of electos on the site, in that I found
> one issue.
> I have added a new page and after that when I have deleted that page from
> the studio and when I refreshed the website then menu is not getting
> refreshed.
> i.e. The deleted page remains as it is in menu.
> --
> Warm Regards,
> Hitesh N.Kulkarni.
> Epura India.
> Itrix Inc.
>

Hitesh
18-Jan-2008, 05:17 AM
Hello David,

Yes, if I clear the cache then it is not showing that deleted page in menu.
But when I am checking the website using studio then in this case if I
cleared the cache then I am loosing my studio session also.
And b'cos of this I need to again relogin in the studio.
So Ideally it should not behave like this.

Regards,
Hitesh N.Kulkarni.
Epura India.
Itrix Inc.




"David Martinko" <DavidM@RedeemedSoftware.com> wrote in message
news:Kc5hWrRWIHA.1352@dacmail.dataaccess.com...
> This sounds like a cache issue.
>
> You have to disable caching of ASP pages in IIS... and you need to check
> your browser settings to make sure it is set to get lastest page on each
> visit.
>
> If you clear your browser history files, then the page will display...
> It's one of those 2 things.
>
> --
> David Martinko
> Custom Software Developer
> Redeemed Software Company
> www.RedeemedSoftware.com
> 248-535-7495
> "Hitesh" <hitesh@itrixinc.com> wrote in message
> news:ZDL8fZRWIHA.1792@dacmail.dataaccess.com...
>> Hi All,
>>
>> I was going trough the live demo of electos on the site, in that I found
>> one issue.
>> I have added a new page and after that when I have deleted that page from
>> the studio and when I refreshed the website then menu is not getting
>> refreshed.
>> i.e. The deleted page remains as it is in menu.
>> --
>> Warm Regards,
>> Hitesh N.Kulkarni.
>> Epura India.
>> Itrix Inc.
>>
>
>

DavidMartinko
18-Jan-2008, 07:18 AM
In IE, goto Tools | Internet Options |

Depending on what version you have... they moved the setting in IE7.

Browing History... Settings button. Choose the radio button: Every time I
visit the webpage.

--
David Martinko
Custom Software Developer
Redeemed Software Company
www.RedeemedSoftware.com
248-535-7495
"Hitesh" <hitesh@itrixinc.com> wrote in message
news:7BQqSsbWIHA.1352@dacmail.dataaccess.com...
> Hello David,
>
> Yes, if I clear the cache then it is not showing that deleted page in
> menu.
> But when I am checking the website using studio then in this case if I
> cleared the cache then I am loosing my studio session also.
> And b'cos of this I need to again relogin in the studio.
> So Ideally it should not behave like this.
>
> Regards,
> Hitesh N.Kulkarni.
> Epura India.
> Itrix Inc.
>
>
>
>
> "David Martinko" <DavidM@RedeemedSoftware.com> wrote in message
> news:Kc5hWrRWIHA.1352@dacmail.dataaccess.com...
>> This sounds like a cache issue.
>>
>> You have to disable caching of ASP pages in IIS... and you need to check
>> your browser settings to make sure it is set to get lastest page on each
>> visit.
>>
>> If you clear your browser history files, then the page will display...
>> It's one of those 2 things.
>>
>> --
>> David Martinko
>> Custom Software Developer
>> Redeemed Software Company
>> www.RedeemedSoftware.com
>> 248-535-7495
>> "Hitesh" <hitesh@itrixinc.com> wrote in message
>> news:ZDL8fZRWIHA.1792@dacmail.dataaccess.com...
>>> Hi All,
>>>
>>> I was going trough the live demo of electos on the site, in that I found
>>> one issue.
>>> I have added a new page and after that when I have deleted that page
>>> from the studio and when I refreshed the website then menu is not
>>> getting refreshed.
>>> i.e. The deleted page remains as it is in menu.
>>> --
>>> Warm Regards,
>>> Hitesh N.Kulkarni.
>>> Epura India.
>>> Itrix Inc.
>>>
>>
>>
>
>

Edwin van der Velden
18-Jan-2008, 07:47 AM
Another possiblity is our menu caching code.

As of 3.0 our MyWebsite template only builds the menu once. This has been
done to omptimize loading times because especially on larger site building
the menus could delay it a bit.

How it works:

The menu building code checks if a menu has already been built, if not the
menu will be built.
If the menu is already built and stored (in session) it will check the last
time it has been updates, it does this by checking the value in
cwebsite.lastupdate with the stored value in the website session. If the
lastupdate is later then the value in the session it will trigger a menu
rebuild.

All changes in Electos should trigger updating the cwebsite.lastupdate
value, although I do recall something not triggering this being fixed in a
recent development version. However I can't seem to recall what exactly this
was so not sure if this was deleting.

If this code is the cause of it you will find it in your Website's
AppHtml\ElectosMenu.inc files

Public Sub MenuPrintHeader(sObjectname)
' The code in this procedure is executed before the items are
printed..
sLastUpdated = oPublisher.call ("Get_LastUpdated")

If (sLastUpdated > Session("LastUpdated") or Session("LastUpdated")
= "" or sLastUpdated = "" or sLastUpdated = "0") Then
Session("LastUpdated") = sLastUpdated
Session("BuildMenu") = "1"
Session("MenuHTML") = ""
End If

End Sub


You can of course disable this, which I always recommend when working on
templates (menu changes) and can be done by simply commenting out the If
and End If lines (so Session("BuildMenu")="1" gets set.

Regards,

Edwin


"David Martinko" <DavidM@RedeemedSoftware.com> wrote in message
news:cwqEmycWIHA.2216@dacmail.dataaccess.com...
> In IE, goto Tools | Internet Options |
>
> Depending on what version you have... they moved the setting in IE7.
>
> Browing History... Settings button. Choose the radio button: Every time I
> visit the webpage.
>
> --
> David Martinko
> Custom Software Developer
> Redeemed Software Company
> www.RedeemedSoftware.com
> 248-535-7495
> "Hitesh" <hitesh@itrixinc.com> wrote in message
> news:7BQqSsbWIHA.1352@dacmail.dataaccess.com...
>> Hello David,
>>
>> Yes, if I clear the cache then it is not showing that deleted page in
>> menu.
>> But when I am checking the website using studio then in this case if I
>> cleared the cache then I am loosing my studio session also.
>> And b'cos of this I need to again relogin in the studio.
>> So Ideally it should not behave like this.
>>
>> Regards,
>> Hitesh N.Kulkarni.
>> Epura India.
>> Itrix Inc.
>>
>>
>>
>>
>> "David Martinko" <DavidM@RedeemedSoftware.com> wrote in message
>> news:Kc5hWrRWIHA.1352@dacmail.dataaccess.com...
>>> This sounds like a cache issue.
>>>
>>> You have to disable caching of ASP pages in IIS... and you need to check
>>> your browser settings to make sure it is set to get lastest page on each
>>> visit.
>>>
>>> If you clear your browser history files, then the page will display...
>>> It's one of those 2 things.
>>>
>>> --
>>> David Martinko
>>> Custom Software Developer
>>> Redeemed Software Company
>>> www.RedeemedSoftware.com
>>> 248-535-7495
>>> "Hitesh" <hitesh@itrixinc.com> wrote in message
>>> news:ZDL8fZRWIHA.1792@dacmail.dataaccess.com...
>>>> Hi All,
>>>>
>>>> I was going trough the live demo of electos on the site, in that I
>>>> found one issue.
>>>> I have added a new page and after that when I have deleted that page
>>>> from the studio and when I refreshed the website then menu is not
>>>> getting refreshed.
>>>> i.e. The deleted page remains as it is in menu.
>>>> --
>>>> Warm Regards,
>>>> Hitesh N.Kulkarni.
>>>> Epura India.
>>>> Itrix Inc.
>>>>
>>>
>>>
>>
>>
>
>