Elxis CMS Forum

Support => General => Topic started by: elpvn on May 11, 2009, 09:00:15

Title: Do you know that Static Cache can make your site load up to 80% faster???
Post by: elpvn on May 11, 2009, 09:00:15
Quote
Do you know that Static Cache can make your site load up to 80% faster?

It's a quote from Elxis News on forum!

Sure, I know that right. But I am not sure about this feature still working fine when we need browse an article has more than two pages.

Example, with this article (on first page):
http://www.cgnewspaper.com/en/features/focus/reviews-autodesk-3ds-max-design-2009-en.html

Then when I want to go page 2, link now be:

http://www.cgnewspaper.com/en/features/focus/reviews-autodesk-3ds-max-design-2009-en.html?page=1

...and now content goes to page 2 as usually ^^

But with Static Cache feature turn ON and link still same as before (http://www.cgnewspaper.com/en/features/focus/reviews-autodesk-3ds-max-design-2009-en.html?page=1), but content still keep on page 1 (not goes to page 2 as when I switch to Stand Cache or turn of cache feature), even I try press link to switch page to 2,3,4 but content still show at page 1?  ???

So, how to solve this problem (content not change when I change page view with Static Cachen turn-on)? Why?

Many thanks

P/SL: In both case, I am ready to rename file .htaccess follow Elxis install guide line.
Title: Re: Do you know that Static Cache can make your site load up to 80% faster???
Post by: ks-net on May 11, 2009, 10:18:34
Quote
But with Static Cache feature turn ON and link still same as before, but content still keep on page 1 (not goes to page 2 as when I switch to Stand Cache or turn of cache feature), even I try press link to switch page to 2,3,4 but content still show at page 1?

i haven't seen this happen... seems to work as should be!

which mode running now?
Title: Re: Do you know that Static Cache can make your site load up to 80% faster???
Post by: elpvn on May 11, 2009, 11:20:18
i haven't seen this happen... seems to work as should be!

which mode running now?

At the time you browse my site, I just set it to Standard Cache then it still work fine sure.

Well, now I set it to Static Cache to view effect, so it will show something what I said before (content does not change when I browse to next pages, nothing at all)

Please try browse again to see the Static Cache problem:

Example:
http://www.cgnewspaper.com/en/features/focus/reviews-autodesk-3ds-max-design-2009-en.html

and

http://www.cgnewspaper.com/en/features/focus/reviews-autodesk-3ds-max-design-2009-en.html?page=1

By normally, at different page then show different content. But in this case (turn on Static Cache feature) then it's same, nothing change. However, when I switch to Standard Cache or turn off cache feature then it work, content first page and page 2 is different as normally.

So why?

P/S: I just replace 4 tables in mySQL database from old site (use Elxis 2008) for my new one (use Elxis 2009), include: elx_categories, elx_content,  elx_menu and elx_sections (use same prefix is elx_). Is it can be OK? Any wrong? Now it's still work fine :) 
Title: Re: Do you know that Static Cache can make your site load up to 80% faster???
Post by: ks-net on May 11, 2009, 11:41:59
well, now i see the problem...

tried to clean cache?

i see that i can access the pages when>>>&cacheregen
http://www.cgnewspaper.com/en/features/focus/reviews-autodesk-3ds-max-design-2009-en.html?page=3&cacheregen
http://www.cgnewspaper.com/en/features/focus/reviews-autodesk-3ds-max-design-2009-en.html?page=2&cacheregen

http://wiki.elxis.org/wiki/Static_cache

edit: forgot to mention that if i remove cacheregen from url still stacks to last page accessed no matter what i click ... 1,2,3 etc.
Title: Re: Do you know that Static Cache can make your site load up to 80% faster???
Post by: elpvn on May 11, 2009, 12:10:38
Thank for fast reply!

Yes, I was tried to clean cache and temporary folder use Clean Cache and Clean Temporary feature in Elxis tools. But it's still not work. Anyone have other idea?

Thank again.

P/S: I am sure that ready to set Seo Pro and Gzip to ON as request. But my Static Cache feature still work fail, why is it?
Title: Re: Do you know that Static Cache can make your site load up to 80% faster???
Post by: datahell on May 11, 2009, 14:33:54
Static cache is excellent cache solution but you might need to make slight modifications to make it work 100% as you wish. In your case the problem you reported should not happened as in the linked pages the page variable in the URL should disable static cache automatically (static cache is being automatically disabled for SEO PRO URLs containing query strings). But this does not happen. Why? I can n't tell, needs debug. But I have a solution for you that you can easily apply.

Open includes/Core/staticcache.php
Go to line 119.
Add bellow:
if (isset($_GET['page'])) { $this->enable = 0; return; }
Save the file, done.

Something else that I saw in your site:
1. Don't display the Front-page module in all pages.
2. I just published IOS Downloads v1.1 that, beside others, provides shorter SEO PRO URLs for Elxis 2009.0+.
http://www.elxis-downloads.com/com_downloads/download-systems/116.html (http://www.elxis-downloads.com/com_downloads/download-systems/116.html)
Title: Re: Do you know that Static Cache can make your site load up to 80% faster???
Post by: webgift on May 11, 2009, 14:59:44
2. I just published IOS Downloads v1.1 that, beside others, provides shorter SEO PRO URLs for Elxis 2009.0+.
http://www.elxis-downloads.com/com_downloads/download-systems/116.html (http://www.elxis-downloads.com/com_downloads/download-systems/116.html)

This is only works for Elxis 2009+ ?
Title: Re: Do you know that Static Cache can make your site load up to 80% faster???
Post by: datahell on May 11, 2009, 15:20:21
IOS Downloads v1.1 works for Elxis 2008.0, 2008.1, 2009.0, and any future 2009.x version.
The difference is that when running under Elxis 2009.x IOS Downloads v1.1 generates better SEO PRO URLs (uses different SEO PRO base name).

IOS Downloads v1.1 URLs under Elxis 2008.x
main page: http://www.mysite/com_downloads/ (http://www.mysite/com_downloads/)
listing page: http://www.mysite.com/com_downloads/category/xxx.html (http://www.mysite.com/com_downloads/category/xxx.html)

IOS Downloads v1.1 URLs under Elxis 2009.x
main page: http://www.mysite/downloads/ (http://www.mysite/downloads/)
listing page: http://www.mysite.com/downloads/category/xxx.html (http://www.mysite.com/downloads/category/xxx.html)
Title: Re: Do you know that Static Cache can make your site load up to 80% faster???
Post by: elpvn on May 11, 2009, 19:30:01
Static cache is excellent cache solution but you might need to make slight modifications to make it work 100% as you wish. In your case the problem you reported should not happened as in the linked pages the page variable in the URL should disable static cache automatically (static cache is being automatically disabled for SEO PRO URLs containing query strings). But this does not happen. Why? I can n't tell, needs debug. But I have a solution for you that you can easily apply.

Open includes/Core/staticcache.php
Go to line 119.
Add bellow:
if (isset($_GET['page'])) { $this->enable = 0; return; }
Save the file, done.

Thanks, it's work great without tags: [ color=green ] [ /color ]  ;D


Quote
Something else that I saw in your site:
1. Don't display the Front-page module in all pages.
2. I just published IOS Downloads v1.1 that, beside others, provides shorter SEO PRO URLs for Elxis 2009.0+.
http://www.elxis-downloads.com/com_downloads/download-systems/116.html (http://www.elxis-downloads.com/com_downloads/download-systems/116.html)


Many thanks for your suggests!

1. Yes, that's right.
2. Before upgrade to new version, I want to ask for somethings: When update to new one (IOS Downloads v1.1) then old database (with my listings) goes to clear (or renew) at all??? How to backup or keep my data (in download section).

Also, how to add more feature article number show on the index page?

Once again, thank your help and your contribution on Elxis project :)
Title: Re: Do you know that Static Cache can make your site load up to 80% faster???
Post by: datahell on May 11, 2009, 19:46:22
When you uninstal IOS Downloads v1.0 everything related to the component will be lost. There is no automatic update script. I don't publish update scripts for my free components. IOS Downloads v1.1 has some great improvements, test it locally and you will see.

Note: As you have enabled static cache raise cache time to at least 3600 seconds.
Title: Re: Do you know that Static Cache can make your site load up to 80% faster???
Post by: elpvn on May 11, 2009, 20:05:39
When you uninstal IOS Downloads v1.0 everything related to the component will be lost. There is no automatic update script. I don't publish update scripts for my free components. IOS Downloads v1.1 has some great improvements, test it locally and you will see.

Note: As you have enabled static cache raise cache time to at least 3600 seconds.

Great done!

So I will try to update to new version without any question  ;D
Impression with your suggestions, I done it.

Problem solved.

Thank all