FORUMS CLOSED DUE TO SPAM. YOU STILL CAN ADD POST!

Making Frog CMS faster

Feed 10 posts, 5 voices

Avatar
7 posts

I've done some changes to Frog CMS which add a few features, namely;

  • Memcached support - pages are cached for performance
  • etag generation - pages send etags in the headers, and correctly handle sending of 304 not modified headers where needed

Both of these lead to a much snappier experience! I've measured over 325% improvement in requests / second compared to a standard setup on my site.

I'm currently writing an article on how to implement this on your own, though its not quite finished.

My changes involved altering the index.php, main.php (in app/frontend) and the page class, as it was not possible to do it via a plugin.

Russell Smith UKD1 Limited

 
Avatar
7 posts

I forgot to post a link to my website.

p.s. an edit function would be handy :-)

 
Avatar
541 posts

this will be really helpful !!! can't wait to wee your article about it !!!!

 
Avatar
486 posts

I would love to see this article…

 
Avatar
651 posts

I sent a mail to ukd1 to ask about the article… no response so far…

 
Avatar
486 posts

thanks for following up, mvdkleijn.

 
Avatar
7 posts

Ah – sorry guys! I got distracted…

Anyway – the reason I never posted the article was due to me not being 100% happy with the code, I’ve (from memory) not finished the purge the cache code….and I’m not 100% sure I’ve finished the article….?!

If people are interested enough, I’m happy to finish the article as well as give the code back (as a tar, or what ever is required) to the community.

Anyway, for those that are interested please check out this link – which I’ve split as I don’t want it googled just yet – http://www.ukd1.co —remove this— .uk/makingfrogcmsfaster.html

Hopefully its not too much of a hack!

Russell – p.s. you can email me directly (russell.smith /at/ ukd1.co.uk) or I should get the replies here…

 
Avatar
7 posts

….hmmmm I just had a quick read over the code in the article, I’m pretty sure there is something missing (there is no set happening on mc…!!)…

 
Avatar
651 posts

Hi Russell, thanks for the reply. I didn’t see a remark agains which version of Frog you made the changes… and a diff file or something would be nice. :-D

 
Avatar
7 posts

Hi mvdkleijn,

Just to let you know today I updated my code to work in revision 225, as I was working something like rev 135 before.

I’ve got a little more work to do before I’m happy with a public release of the changes, but I’m happy to give you a copy of the unfinished code.

I have the following to finish –

  • Wrapper for caching, with a backend choice of memcached (overkill) or xcache.
  • Make sure all my changes are properly documented
  • Make sure my code is the Frog style
  • Possibly unit some tests

I’m happy to release my changes back under GPL :)

Russell

 
Avatar
51 posts

Hi ukd1,

I made a file cache plugin (not already published) for frog. I think it would be easy to integrate your code to add memcached support.

I wil take the time next week to release a beta version. Contact me if you are interrested.