Phoca Gallery Tree Caching

Phoca Gallery - image gallery extension
rlopes
Phoca Newbie
Phoca Newbie
Posts: 7
Joined: 17 May 2012, 19:20

Phoca Gallery Tree Caching

Post by rlopes »

As I've read here, the PGT has a performance issue for sites with lots of categories.
My site has more than 700 categories, and it's really slow.

I wonder, is there any way to cache it, so the server doesn't have to calculate everything on each user visit?
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48910
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Phoca Gallery Tree Caching

Post by Jan »

Hi, yes, displaying a tree can be server performance demanding as you cannot use pagination (you need to load all the categories - see more about this common problem in this forum)

One tip more: Check if this parameter:

Category Image Ordering - (Ordering Ascending | Ordering Descending | Title Ascending | Title Descending | Date Ascending | Date Descending | Id Ascending | Id Descending | Random | Special) If image will be displayed instead of Folder Icon in Category View, set which image will be selected (random, first, last, etc.)

Set Category Image ordering to "special" which means, no specific image ordering for category will be set (so this will save some sql queries)

https://www.phoca.cz/documents/2-phoca-g ... parameters

Jan
If you find Phoca extensions useful, please support the project
rlopes
Phoca Newbie
Phoca Newbie
Posts: 7
Joined: 17 May 2012, 19:20

Re: Phoca Gallery Tree Caching

Post by rlopes »

Hi Jan, thank you very much for the tip, I just implemented it.

Still I wonder, is there any way to cache the Categories Tree? There's no need to recalculate everything on each page load. Instead of that, a static category list could be shown, and only regenerated once a new category is created.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48910
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Phoca Gallery Tree Caching

Post by Jan »

Hi, in Joomla! 2.5 standard caching can be enabled but if this can help on your server, really no clue :-(

Jan
If you find Phoca extensions useful, please support the project
Post Reply