If this becomes a huge issue for you, I think that you could write a little plugin called
disable_view_cache
disable_view_cache_init containing the lines:
$cache = elgg_get_filepath_cache();
$cache->delete('view_paths');
Of course this would slow down your site significantly.
Please tell us if you try it.
Hi Kevin,
I'm working with simple cache turned off by default. Let me give you a small example, just to make sure I fully understand your comment:
I've added the featured groups code snippet to my custom riverdashboard, this piece of code.
//featured groups
$featured_groups = get_entities_from_metadata("featured_group", "yes", "group", "", 0, 10, false, false, false);
$area1 .= elgg_view("groups/featured", array("featured" => $featured_groups));
I expected to see this as part of my new customeriverdashboard immediatly. It only worked after I ran upgrade.php
In previous version, such changes where picked up immediatly. I also expected that without cache it will behave the same way in 1.5.
Is this what you mean?
Just to clarify, Elgg has two kinds of view caching right now. simplecache caches core system CSS and JS, and the view_paths cache caches the file system location of the currently active view files. So if you add a new view file (or remove an old one), you need to update the cache.
But otherwise, no.
If this becomes a huge issue for you, I think that you could write a little plugin called
disable_view_cache
disable_view_cache_init containing the lines:
$cache = elgg_get_filepath_cache();
$cache->delete('view_paths');
Of course this would slow down your site significantly.
Please tell us if you try it.
Hi Kevin,
I'm working with simple cache turned off by default. Let me give you a small example, just to make sure I fully understand your comment:
I've added the featured groups code snippet to my custom riverdashboard, this piece of code.
//featured groups
$featured_groups = get_entities_from_metadata("featured_group", "yes", "group", "", 0, 10, false, false, false);
$area1 .= elgg_view("groups/featured", array("featured" => $featured_groups));
I expected to see this as part of my new customeriverdashboard immediatly. It only worked after I ran upgrade.php
In previous version, such changes where picked up immediatly. I also expected that without cache it will behave the same way in 1.5.
Is this what you mean?
Just to clarify, Elgg has two kinds of view caching right now. simplecache caches core system CSS and JS, and the view_paths cache caches the file system location of the currently active view files. So if you add a new view file (or remove an old one), you need to update the cache.
But otherwise, no.
@M.C. that's quit a list. Am I correct that all are Enabled? If so here is what works for me. First elgg will place the news plugins at the bottom by default, start by disabling each one at a time, dumping the simplecache and starting simple cache back up each time.
Now I can tell you you may have some plugins located wrong, example is to keep like minded plugin together like blog and place blogextended just below it. walltowall just under messageboard, I group all my profile related plugin together. Keep custom_index either very top or very bottom.
I understand a lot of plugin developers say to place the plugin at the bottom, but not every plugin can have this position.
Make sure garbagecollector and logrotate are set to weekly and force a cron clean up. www.xxxxxx.com/pg/cron/weekly.
Now my advice is do as I say not as I do because you have so many plugin I would conside which ones you realy need, your site will be much faster.
Hope this helps
Hi Goofbucket
Thank you for helping me. I tried the cron and minue i turn off the simple cache, all css goes off.
I disabled all plugins and its still the same.
Strange its happening with all plugins disabled.
The minute i click enable simple cache, site loads normally
Im debugging and making changes so i need to disable caching
What could be the issue
so your java is back, and yes this is an issue with simplecache, and I am sorry but probably over my head. Do a search on simple cache and you should find the right thread with the right people. sorry I could not help more.
@M.C. that's quit a list. Am I correct that all are Enabled? If so here is what works for me. First elgg will place the news plugins at the bottom by default, start by disabling each one at a time, dumping the simplecache and starting simple cache back up each time.
Now I can tell you you may have some plugins located wrong, example is to keep like minded plugin together like blog and place blogextended just below it. walltowall just under messageboard, I group all my profile related plugin together. Keep custom_index either very top or very bottom.
I understand a lot of plugin developers say to place the plugin at the bottom, but not every plugin can have this position.
Make sure garbagecollector and logrotate are set to weekly and force a cron clean up. www.xxxxxx.com/pg/cron/weekly.
Now my advice is do as I say not as I do because you have so many plugin I would conside which ones you realy need, your site will be much faster.
Hope this helps
Hi Goofbucket
Thank you for helping me. I tried the cron and minue i turn off the simple cache, all css goes off.
I disabled all plugins and its still the same.
Strange its happening with all plugins disabled.
The minute i click enable simple cache, site loads normally
Im debugging and making changes so i need to disable caching
What could be the issue
so your java is back, and yes this is an issue with simplecache, and I am sorry but probably over my head. Do a search on simple cache and you should find the right thread with the right people. sorry I could not help more.
@M.C. that's quit a list. Am I correct that all are Enabled? If so here is what works for me. First elgg will place the news plugins at the bottom by default, start by disabling each one at a time, dumping the simplecache and starting simple cache back up each time.
Now I can tell you you may have some plugins located wrong, example is to keep like minded plugin together like blog and place blogextended just below it. walltowall just under messageboard, I group all my profile related plugin together. Keep custom_index either very top or very bottom.
I understand a lot of plugin developers say to place the plugin at the bottom, but not every plugin can have this position.
Make sure garbagecollector and logrotate are set to weekly and force a cron clean up. www.xxxxxx.com/pg/cron/weekly.
Now my advice is do as I say not as I do because you have so many plugin I would conside which ones you realy need, your site will be much faster.
Hope this helps
Hi Goofbucket
Thank you for helping me. I tried the cron and minue i turn off the simple cache, all css goes off.
I disabled all plugins and its still the same.
Strange its happening with all plugins disabled.
The minute i click enable simple cache, site loads normally
Im debugging and making changes so i need to disable caching
What could be the issue
so your java is back, and yes this is an issue with simplecache, and I am sorry but probably over my head. Do a search on simple cache and you should find the right thread with the right people. sorry I could not help more.
@M.C. that's quit a list. Am I correct that all are Enabled? If so here is what works for me. First elgg will place the news plugins at the bottom by default, start by disabling each one at a time, dumping the simplecache and starting simple cache back up each time.
Now I can tell you you may have some plugins located wrong, example is to keep like minded plugin together like blog and place blogextended just below it. walltowall just under messageboard, I group all my profile related plugin together. Keep custom_index either very top or very bottom.
I understand a lot of plugin developers say to place the plugin at the bottom, but not every plugin can have this position.
Make sure garbagecollector and logrotate are set to weekly and force a cron clean up. www.xxxxxx.com/pg/cron/weekly.
Now my advice is do as I say not as I do because you have so many plugin I would conside which ones you realy need, your site will be much faster.
Hope this helps
Hi Goofbucket
Thank you for helping me. I tried the cron and minue i turn off the simple cache, all css goes off.
I disabled all plugins and its still the same.
Strange its happening with all plugins disabled.
The minute i click enable simple cache, site loads normally
Im debugging and making changes so i need to disable caching
What could be the issue
so your java is back, and yes this is an issue with simplecache, and I am sorry but probably over my head. Do a search on simple cache and you should find the right thread with the right people. sorry I could not help more.
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by Raül Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.