Posts: 412 Location: Prato, Italy
Wed 25 Oct, 2006 01:24
In my opinion it's not a bug... :wink:
Ok sorry my fault ;) In this case moderators please move this to the right section.
Quote:
Yes right... if you are caching the block you are caching the output, not the source... so the switch are OBVIOUSLY missed... otherwise no reason to cache.
Ok, I understand.
Quote:
I totally disagree on this... if you take a look at the code in nav_quick_links.tpl you will immediately notice that there is no SQL in that file... so there is no need to cache it... :wink: try to believe, the number of SQL shouldn't increase if you cache or not that block.
Ok, I believe you but my site really reached more than 50 queries... did I mistake in disabling caching? I did that setting "no" to Configuration ---> DB ---> Caching of the board's Configuration. Probably this disables ALL cachable things in Portal, so it's quite normal it reached that amount of queries, am I wrong?
Yes I am.
Now I tried (in
ACP) Portal ---> Blocks Management ---> 3 Columns ---> Edit (Nav Links of course) ---> Cache set to "no" and it worked... it was SO easy... I said by myself it was a caching problem and I didn't check that section -.-' too busy looking at the code I suppose :
LOL:
(actually,
nobody changed anything in that part configuration since site opened. It all worked fine till a week ago. Still I don't understand what really happened)
Quote:
All the switches are checked once in the PHP pages (most of them in page_header.php), so all switches in a TPL are parsed really really fast.
My advice is to avoid caching all blocks which do not involve SQL, because it's quite useless... take a look at the home page here... sometimes it's loaded in less than one second... :wink: and this site is on Aruba on a shared server... :wink:
Thanks for suggestions... I have a quick question about this: how are counted those huge numbers that define cache duration?
Quote:
I don't think security is a problem for this case... can you explain this to me? :shock:
No I can't, I was totally wrong :mrviolet:
Quote:
Even if some links are visible, it doesn't mean users may access them. :wink:
I know, but knowing that my users can't be attracted by that strange "
ACP" links lets me feel safer... :roll:
I'd like to apologize to other users and with
MG for the unpleasant attitudes and misunderstandings with moreteavicar, hope it will never happen again here. Thanks to all guys, see you soon ;)