ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Changes to template have no effect

July 14, 2010 1:02pm

Subscribe [4]
  • #1 / Jul 14, 2010 1:02pm

    heaversm

    197 posts

    Hi - I’m having the strangest issue with my site. If I make changes to a certain embedded template which holds my site’s navigation, nothing happens. It’s like the site is caching an old version of the template somewhere. Enable caching is turned off though for this (and all) templates). I’ve also cleared all caches within expression engine. I can completely erase all the information in the template, and still the full navigation shows up.

    If I comment out the embed tag that calls the menu, it works, so I know I have the right template. Does anyone have any idea what might be happening here?

    An example link is:

    http://www.nhschicago.org/site/topnav_landing/category/neighborhoods. The left nav is the embed, and at the moment it is completely empty

  • #2 / Jul 14, 2010 1:18pm

    lebisol

    2234 posts

    Browser cache? Menu generated only for logged in users?...
    Looks like you are using categories to generate the nav…so if commenting out your embedded template hides it then it works like it should.
    Show some code from your templates…hard to tell.

  • #3 / Jul 14, 2010 2:12pm

    heaversm

    197 posts

    Yeah - it is hard to tell, I know. I’ve made some headway on this - there’s definitely some sort of caching going on. I found two problems - one - even though a particular category was deleted from the CMS, it is still being generated inside a weblog:categories tag. I was able to adjust for this behavior with the parameter not=“230”. Secondly though, even when I modified the embed with this code, it would still show the old menu where the category had not been excluded. To resolve this, I had to create and call a new embed template with the same exact code in it. So technically my problem is solved, but I’d REALLY like to know why deleting the category didn’t stop it from being generated, and what’s going on with the caching. Here’s code:


    The embed call from within site/topnav_landing:

    {embed="embeds/nav_left_landing_2"}

    and the embed:

    {if:elseif segment_4 =="neighborhoods"}
                
                {exp:weblog:categories weblog="pages_neighborhoods" id="left_menu" show="not 230" }
                {category_name} | {category_id}
                {/exp:weblog:categories}    
                {/if}
  • #4 / Jul 14, 2010 2:18pm

    lebisol

    2234 posts

    My first thought would be to eliminate if condition as it might be causing it…test in simple setup of tags then build out. With embeds I would usually get nipped by dynamic=on/off tag.
    But, glad you got it worked out.

  • #5 / Jul 15, 2010 5:35am

    John Henry Donovan

    12339 posts

    heaversm,

    Have you tried manually clearing your cache by FTPing into system/cache/ and deleting all folders except for index.php?

  • #6 / Jul 15, 2010 9:07am

    heaversm

    197 posts

    Ahhh! That was the problem. I migrated the site from a testing server without having cleared my cache, so even though I was clearing the system cache on the new server, it was still reading the old cache files from the previous server. Spent forever trying to figure that one out. Thanks!

  • #7 / Jul 15, 2010 9:14am

    Ingmar

    29245 posts

    Glad to see John Henry was able to help 😊 Please post again as needed.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases