by Wesley Luyten in Nucleus on Nov 22, 2008
I have been using the Nucleus content management system for a few years, and I really like it. I once installed the Drupal on my Dreamhost server, and it was really slow compared to nucleus. The nucleus core is lightweight which makes it pretty fast, but not fast enough for my sluggish server though. It still makes a lot of SQL queries and has to read and parse templates which takes a lot of time. So how do we solve this problem you ask? One solution is; by caching your web page server side.
There are 2 plugins available for caching that I know of:
I never used the NP_CacheLite, but I took a look at the code and I didn't really like it. This plugin gives you the possibility of putting dynamic content between no cache tags in your skin, which means it still has to fetch your skin from your database. Maybe it's good for some websites, but not for this one.
I went for the NP_Cache plugin, a fully cached solution for your website. Using a full cache of your web page is great but it comes with some glitches. Everything is static, this means the cache file has to be deleted every time a visitor comments on a item, or gives a rating, or when a user logs in for example. So everything which used to be dynamic has ceased to work. A few examples of plugins which won't work are NP_Captcha, NP_Views, NP_ Refer. You can address this issue by getting some dynamic content through an AJAX request.
There are 2 plugins available for caching that I know of:
I never used the NP_CacheLite, but I took a look at the code and I didn't really like it. This plugin gives you the possibility of putting dynamic content between no cache tags in your skin, which means it still has to fetch your skin from your database. Maybe it's good for some websites, but not for this one.
I went for the NP_Cache plugin, a fully cached solution for your website. Using a full cache of your web page is great but it comes with some glitches. Everything is static, this means the cache file has to be deleted every time a visitor comments on a item, or gives a rating, or when a user logs in for example. So everything which used to be dynamic has ceased to work. A few examples of plugins which won't work are NP_Captcha, NP_Views, NP_ Refer. You can address this issue by getting some dynamic content through an AJAX request.
by Wesley Luyten in Nucleus on Mar 03, 2008
Last month I wanted to make a zebra effect for the headlines list on my nucleus site bmxaction.net. I didn't find a plugin or something for it so I wrote a little script for it. It's actually really easy to get this effect.
First I made a little zebra.php file with the following code:
To add the this in the iteration of my items I went to the my headline template and added this in a phpinclude tag like so:
The last step is to add some css to make a difference in background:
That's it! Now you have a cool zebra effect.
First I made a little zebra.php file with the following code:
To add the this in the iteration of my items I went to the my headline template and added this in a phpinclude tag like so:
<li<%phpinclude(zebra.php)%>>
<div class="date"><%date%></div>
<h2><a href="<%itemlink%>" title="Read entry: <%title(attribute)%>"><%syndicate_title(50)%></a></h2>
</li>
<div class="date"><%date%></div>
<h2><a href="<%itemlink%>" title="Read entry: <%title(attribute)%>"><%syndicate_title(50)%></a></h2>
</li>
The last step is to add some css to make a difference in background:
.zebra
{
background:#CCC;
}
{
background:#CCC;
}
That's it! Now you have a cool zebra effect.
I am Wesley Luyten, on the net I'm also known as wessite. I am born and raised in Belgium, but I also have Canadian roots. I'm currently completing my master's degree in ICT engineering, and I'm pretty much web addicted :). I use a macbook pro to handle my computer business.