• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Changes are not visible on home page

#1
Hello guys,
I'm new to CI and I have one heritable website. So the problem is that when I made changes they are not visible on home page or they start to be visible after a long period of time.

For example:
Let's say I change site_email in application/config/settings.php ( $config['site_email'] = "name@domain.com"; ) and it is visible on all of site pages except home. On the home page is still visible the old email address and maybe it's gonna change after a long time ago.

Can you help me with this if someone can suggest something that I can check?

Regards!
Reply

#2
Have you enabled cache in that controller?
Reply

#3
(10-15-2019, 12:18 PM)jreklund Wrote: Have you enabled cache in that controller?

Hello jreklund,
I'm not sure exactly how to check if it's enabled or not, but probably it is enabled because I found an else clause in Home.php controller that says if a user is not logged in do this:
Code:
$this->output->cache((24*60));

So now I can reduce that time for non logged users or is there any better way to do it? I don't know what was the reason for that clause. 

Thanks for your replay!
Reply

#4
It's indeed that value, you got it cached for 24 hours.

If you still want a very long time, you can make an admin interface utilizing delete_cache.
https://codeigniter.com/user_guide/gener...ing-caches
Reply

#5
(10-16-2019, 09:54 AM)jreklund Wrote: It's indeed that value, you got it cached for 24 hours.

If you still want a very long time, you can make an admin interface utilizing delete_cache.
https://codeigniter.com/user_guide/gener...ing-caches

Thanks jreklund, this was really useful for me, appreciate your help!

Cheers!
Reply


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2019 MyBB Group.