Hello everyone,
I am making my first component and I want to use caching. So I did some research and I made this overview page of it: http://docs.joomla.org/Cache
It's a bit an overview to all sorts of caching, used plugins or configuration, classes, etc.., (for admins as wel as developers) because it was easy to confuse for a beginner. Maybe some people want to review or complete it?
But I still have some bottleneckish remaining questions for which
I can't seem to find closing answers. I hope I can get some help here.
Here I go:
1. I want to cache the result of my component (including template). Since the resulting html is pretty straightforward to the view and url, I thought to do this a bit as com_content does this -> by setting the $caching parameter to true for the controller display method. See further in code below.
But using the JProfiler it seems that nothing changes
much after the first, initial loads!? The behavior is also kind of weird.
I wonder,.. is this the result from my mysql-server's own caching? I'd doubt
that since the results are so close that no noteable difference can be seen. …
Maybe components are already cached in some way on another level?
Anyway, here are my code and results. I would like your comments and
advice.
- Used code in my controller:
function display() {
jimport( 'joomla.error.profiler' );
$p =new JProfiler();
$p->mark('Start with caching');
parent::display(true); //true for caching, and false for no caching
$p->mark('Stop');
print_r($p->getBuffer());
}
- Results (in all tests global config cache is on APC,
page cache system plugin is off):
(refreshed after =>)
--->with caching:
-->Page with get-request-variable 1
=> Start: 0.000 seconds, 1.84 MB Stop: 0.931 seconds, 2.43 MB
=> Start: 0.000 seconds, 2.07 MB Stop: 0.271 seconds, 2.61 MB
=> Start: 0.000 seconds, 1.73 MB Stop: 0.002 seconds, 1.81 MB
=> Start: 0.000 seconds, 1.84 MB Stop: 0.275 seconds, 2.43 MB
(This last time occurs very FEW times)
-->Page with get-request-variable 2
=> Start: 0.000 seconds, 1.84 MB Stop: 1.745 seconds, 2.39 MB
=> Start: 0.000 seconds, 1.73 MB Stop: 0.471 seconds, 1.89 MB
=> Start: 0.000 seconds, 1.73 MB Stop: 0.002 seconds, 1.81 MB
=> Start: 0.000 seconds, 1.73 MB Stop: 0.252 seconds, 1.94 MB
--->without caching:
-->Page with get-request-variable 1
=> Start: 0.000 seconds, 1.76 MB Stop: 0.262 seconds, 1.92 MB
=> Start: 0.000 seconds, 1.84 MB Stop: 0.266 seconds, 2.38 MB
=> Start: 0.000 seconds, 1.84 MB Stop: 0.266 seconds, 2.38 MB
-->Page with get-request-variable 2
=> Start: 0.000 seconds, 1.76 MB Stop: 0.455 seconds, 1.87 MB
=> Start: 0.000 seconds, 1.76 MB Stop: 0.529 seconds, 1.87 MB
=>
Start: 0.000 seconds, 1.76 MB Stop: 0.444 seconds, 1.87 MB
2.
Sometimes when I am refreshing in the tests above I get
a page with a different parameter (which the view is totally different) and
then after another refresh normal again, and sometimes later again with a wrong
parameter. Huh?
3.
I wonder if it makes sense to cache in more ways than
one in any component. I.e., is it ill-advized to use view-caching like
above and at the same time us JCacheCallback to do query caching further down (in
the model)? One side of me says "you never know", the other
says "keep it simple and not redundant in combination with mysql caching.
Even if the latter is worse, you still have the view-cache".
Do any of you have some experience or know if it is meant that way?
4.
Since I can't test it, I have to ask:
In my view-caching in point 1. above, does this only work when Global cache is
on, and thus have to override it if I always want to cache it, or does that
method ignore those settings?
5.
There is some talk that the system cache plugin (page
cache) should be enabled to see other caches working (View/module/developers'
specific caches). Is there anyone that knows for sure? Is this a bug? It
seems very hard to detect this..
6.
Is it advized to use the JCache to cache php-generated thumb(file)s of images?
(Possibly check this also: very detailed
topic about Cached Thumbs, incl. code)
a. If so, which handlers/functions should I use for imagefiles and how do I set the lifetime?
b. If not, how else should I do it (write my own cache? other cache joomla library? ..)
Thanks in advance
Cheers, e-builds
P.S. Is the development forum still used and if so what for with alle the existing dev Google Groups? I am confused..
Hello everyone,
I am making my first component and I want to use caching. So I did some research and I made this overview page of it: http://docs.joomla.org/Cache
It's a bit an overview to all sorts of caching, used plugins or configuration, classes, etc.., (for admins as wel as developers) because it was easy to confuse for a beginner. Maybe some people want to review or complete it?
But I still have some bottleneckish remaining questions for which I can't seem to find closing answers. I hope I can get some help here.
Here I go:
1. I want to cache the result of my component (including template). Since the resulting html is pretty straightforward to the view and url, I thought to do this a bit as com_content does this -> by setting the $caching parameter to true for the controller display method. See further in code below.
But using the JProfiler it seems that nothing changes much after the first, initial loads!? The behavior is also kind of weird.
I wonder,.. is this the result from my mysql-server's own caching? I'd doubt that since the results are so close that no noteable difference can be seen. … Maybe components are already cached in some way on another level?
Anyway, here are my code and results. I would like your comments and advice.
- Used code in my controller:
function display() {
jimport( 'joomla.error.profiler' );
$p =new JProfiler();
$p->mark('Start with caching');
parent::display(true); //true for caching, and false for no caching
$p->mark('Stop');
print_r($p->getBuffer());
}
- Results (in all tests global config cache is on APC, page cache system plugin is off):
(refreshed after =>)
--->with caching:
-->Page with get-request-variable 1
=> Start: 0.000 seconds, 1.84 MB Stop: 0.931 seconds, 2.43 MB
=> Start: 0.000 seconds, 2.07 MB Stop: 0.271 seconds, 2.61 MB
=> Start: 0.000 seconds, 1.73 MB Stop: 0.002 seconds, 1.81 MB
=> Start: 0.000 seconds, 1.84 MB Stop: 0.275 seconds, 2.43 MB
(This last time occurs very FEW times)
-->Page with get-request-variable 2
=> Start: 0.000 seconds, 1.84 MB Stop: 1.745 seconds, 2.39 MB
=> Start: 0.000 seconds, 1.73 MB Stop: 0.471 seconds, 1.89 MB
=> Start: 0.000 seconds, 1.73 MB Stop: 0.002 seconds, 1.81 MB
=> Start: 0.000 seconds, 1.73 MB Stop: 0.252 seconds, 1.94 MB
--->without caching:
-->Page with get-request-variable 1
=> Start: 0.000 seconds, 1.76 MB Stop: 0.262 seconds, 1.92 MB
=> Start: 0.000 seconds, 1.84 MB Stop: 0.266 seconds, 2.38 MB
=> Start: 0.000 seconds, 1.84 MB Stop: 0.266 seconds, 2.38 MB
-->Page with get-request-variable 2
=> Start: 0.000 seconds, 1.76 MB Stop: 0.455 seconds, 1.87 MB
=> Start: 0.000 seconds, 1.76 MB Stop: 0.529 seconds, 1.87 MB
=> Start: 0.000 seconds, 1.76 MB Stop: 0.444 seconds, 1.87 MB
2. Sometimes when I am refreshing in the tests above I get a page with a different parameter (which the view is totally different) and then after another refresh normal again, and sometimes later again with a wrong parameter. Huh?
3. I wonder if it makes sense to cache in more ways than one in any component. I.e., is it ill-advized to use view-caching like above and at the same time us JCacheCallback to do query caching further down (in the model)? One side of me says "you never know", the other says "keep it simple and not redundant in combination with mysql caching. Even if the latter is worse, you still have the view-cache".
Do any of you have some experience or know if it is meant that way?
4. Since I can't test it, I have to ask:
In my view-caching in point 1. above, does this only work when Global cache is on, and thus have to override it if I always want to cache it, or does that method ignore those settings?
5. There is some talk that the system cache plugin (page cache) should be enabled to see other caches working (View/module/developers' specific caches). Is there anyone that knows for sure? Is this a bug? It seems very hard to detect this..
6. Is it advized to use the JCache to cache php-generated thumb(file)s of images?
(Possibly check this also: very detailed topic about Cached Thumbs, incl. code)a. If so, which handlers/functions should I use for imagefiles and how do I set the lifetime?
b. If not, how else should I do it (write my own cache? other cache joomla library? ..)
Thanks in advance
Cheers, e-builds
P.S. Is the development forum still used and if so what for with alle the existing dev Google Groups? I am confused..
--
You received this message because you are subscribed to the Google Groups "Joomla! General Development" group.
To post to this group, send an email to joomla-de...@googlegroups.com.
To unsubscribe from this group, send email to joomla-dev-gene...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/joomla-dev-general?hl=en-GB.
On Mar 5, 6:18 pm, klas berlič <klas.ber...@gmail.com> wrote:
> 2010/3/5 Ruby <0ru...@gmail.com>
>
> > Hello everyone,
>
> > I am making my first component and I want to use caching. So I did some
> > research and I made this overview page of it:http://docs.joomla.org/Cache
>
> > It's a bit an overview to all sorts of caching, used plugins or
> > configuration, classes, etc.., (for admins as wel as developers) because it
> > was easy to confuse for a beginner. Maybe some people want to review or
> > complete it?
>
> http://www.bzzzz.biz/blog/joomla/using-caching-in-joomla-extensions.b...
>
>
Thanks, I added a link to my doc too.
If I only stumbled upon this one before, I could have save a lot of
time! lol
You'd might want to link to your pages in the joomla doc next time. I
think some of us would appreciate that. :-)
I wonder about what you wrote about the empty or dummy clean methods.
Are you sure they aren't empty because these other cache systems have
their built-in way of cleaning (that generates itself on specific and
joomla-demanded times) ?
>
>
>
> > But I still have some bottleneckish remaining questions for which I can't
> > seem to find closing answers. I hope I can get some help here.
> > Here I go:
>
> > 1. I want to cache the result of my component (including template).
> > Since the resulting html is pretty straightforward to the view and url, I
> > thought to do this a bit as com_content does this -> by setting the $caching
> > parameter to true for the controller display method. See further in code
> > below.
>
> > But using the JProfiler it seems that nothing changes much after the first,
> > initial loads!? The behavior is also kind of weird.
> > I wonder,.. is this the result from my mysql-server's own caching? I'd
> > doubt that since the results are so close that no noteable difference can be
> > seen. … Maybe components are already cached in some way on another level?
> > Anyway, here are my code and results. I would like your comments and
> > advice.
>
> > - Used code in my controller:
> > ------------------------------
>
> > function display() {
>
> > jimport( 'joomla.error.profiler' );
>
> > $p =new JProfiler();
>
> > $p->mark('Start with caching');
>
> > parent::display(true); //true for caching, and false for no
> > caching
>
> > $p->mark('Stop');
>
> > print_r($p->getBuffer());
>
> > }
> > ------------------------------
>
> > - Results (in all tests global config cache is on APC, page cache system
> > plugin is off):
> > (refreshed after =>)
>
> No wonder, cache drivers except file cache are broken in 1.5.
Really!? I use APC, so I might abandon caching in my component for
now. Bummer!! :-(
Does this mean "Wait for 1.6"??
Do you have some references to this? Is there already a bug / tracker
submitted?
So, if the functions of the component is not used except for 1 view,
you see no use for it?
I would think the same..
>
>
>
> > 4. Since I can't test it, I have to ask:
> > In my view-caching in point 1. above, does this only work when Global cache
> > is on, and thus have to override it if I always want to cache it, or does
> > that method ignore those settings?
>
> > You can override, see that link I pasted.
> > 5. There is some talk that the system cache plugin (page cache)
> > should be enabled to see other caches working (View/module/developers'
> > specific caches). Is there anyone that knows for sure? Is this a bug? It
> > seems very hard to detect this..
>
> > Plugin has no direct effect on other cache types
> > 6. Is it advized to use the JCache to cache* php-generated**thumb(file)s of images
> > *?
> > (Possibly check this also: very detailed topic about Cached Thumbs, incl.
> > code <http://forum.joomla.org/viewtopic.php?f=500&t=459266>)
>
> > a. If so, which handlers/functions should I use for imagefiles and
> > how do I set the lifetime?
>
> > b. If not, how else should I do it (write my own cache? other cachejoomla library? ..)
>
> > Thanks in advance
>
> > Cheers, e-builds
>
> Why don't you just cache created thumbnail files?
If you mean "joomla" cache, I can name 3 reasons or rather "doubts".
And I have no idea if there is a solution for each one.
1. Because I am not sure APC can do that / is optimal for images.
2. Which URLs do I give then in the html, since there are no files for
APC?
3.a. Sometimes I, the developer, or the site's administrator would not
want to crowd the same cache with thumbnails. In other words: If the
cache is limited, you'd still want some important thumbs cached.
3.b. Other scenario: thumbnails should have a priority (whether to
keep them cached or not) based on the occurence hits ot them, and
sometimes even with a different priority scheme from other cached
objects.
>
>
>
> > P.S. Is the development forum still used and if so what for with alle the
> > existing dev Google Groups? I am confused..
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Joomla! General Development" group.
> > To post to this group, send an email to
> > joomla-de...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > joomla-dev-gene...@googlegroups.com<joomla-dev-general%2Bunsu...@googlegroups.com>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/joomla-dev-general?hl=en-GB.
>
> --
> ------------------------------------------------------------------http://www.bzzzz.biz - Creating images
> Marketing and web communication agency
>
> http://www.belmondo.si- vacation packages,
There is a 1 line workaround in the bug tracker, I spent 2 nights for
it.. :-) (I'm not a Joomla developer... )
But stick with Klas advice, since there can be other underlying
problems... and BTW they stopped using cache since it did not clean
after article update so Joomla was serving old, not updated content
until cache expire... !
Francesco
To unsubscribe from this group, send email to joomla-dev-gene...@googlegroups.com.
- I agree with klas that "self-promotion" is not what this was. (I
put the link and we are not related, including klas's own arguments).
One might to change the name of this rule.
- Broken links: Isn't it possible to use the builtin wiki-functions to
check and correct broken external links? At the least a wiki-robot can
handle this.
- And I agree with klas that when it's clearly marked external, other
arguments become less heavy.
- But I must say I totally agree that sharing on wiki should be
encouraged and I support the rule in this matter. But then again I
find it a pitty and precisely contra encouragement if there is not at
least some credit or reward (in the form of a link) for the author and
the author of the used sources.
What about a "Credits" chapter in the doc. with these deleted links
(or links to the chosen homepages of the authors since they are less
broken generally)? Is this allowed and a possible compromise in the
pro and contra arguments, gentlemen?
- And last, for what it's worth: It's sometimes nice and rewarding for
people who look for help/info to see other related informative pages,
but in a different way and on another domain. (Sometimes it even
doesn't fit inside the doc. pages, but it's still helpfull).
So far my humble opinion..and now some filecache testing from which I
will return soon on this thread :-)
On Mar 12, 12:24 am, Mark Dexter <dextercow...@gmail.com> wrote:
> I agree with Chris that is makes sense to put this type of information on
> the Wiki. One problem with external links is that they change and break.
> Also, if something is on the Wiki, users know what the license is for it.
>
> What is the objection to putting this on the wiki? I understand that some
> people don't like using the wiki and find it hard to work with. If that is
> the case, I'm happy to help with the formatting and editing. Mark
>
> 2010/3/11 klas berlič <klas.ber...@gmail.com>
>
> > Thank you for your answer.
>
> > Too bad that such strict policies are in place - it might be useful to have
> > such external links somewhere near each topic (if they are clearly marked
> > as external links and of informative nature). Not everything needs to be on
> > the wiki - perhaps "related approved bookmarks"?
>
> > Regards,
> > Klas
>
> > 2010/3/11 Chris Davenport <chris.davenp...@joomla.org>
>
> >> We try to be consistent and apply the same rules on the wiki regarding
> >> links to external sites that apply tohttp://forum.joomla.org. The aim
> >> is also to encourage people to improve the official documentation rather
> >> than direct people off-site. You are right about there being another link
> >> to an external site on that page. It seems to have escaped our attention,
> >> so I've deleted them both.
>
> >> This is clearly an important topic and I'd really like to see those who
> >> are familiar with it, in both 1.5 and 1.6, write up their notes on the
> >> wiki. It doesn't have to be perfect; it can be improved iteratively.
> >> Thanks for giving it some attention.
>
> >> Regards,
> >> Chris.
>
> >> 2010/3/11 klas berlič <klas.ber...@gmail.com>
> ...
>
> read more »
Can you tell I work for a Library?
Sam Moffatt
http://pasamio.id.au
On Mar 15, 2:51 pm, Sam Moffatt <pasa...@gmail.com> wrote:
> The point that is trying to be made is that if it is on the wiki we
> have control over ensuring it has a future. Linking offsite could
> result in the resource disappearing entirely. It is a problem that I
> have come across professionally where a lot of my documentation is
> actually sourced from online non-permanent resources. In the
> particular situation I was referring to Microsoft TechNet and MSDN
> articles which in one case actually disappeared off the face of the
> earth. I couldn't find the article any more. It was a legacy article
> that had some good material but was about a very early part of
> Windows' history. That information is probably still accessible
> somewhere but I wouldn't know where to look. This is the reason why we
> want to maintain it, to ensure we have a copy - a broken link isn't
> fun but losing content entirely is disappointing.
>
> Can you tell I work for a Library?
>
> Sam Moffatthttp://pasamio.id.au
> ...
>
> read more »
Sam Moffatt
http://pasamio.id.au
On Mar 15, 2:59 pm, Sam Moffatt <pasa...@gmail.com> wrote:
> It is there in the history of the page (property of it being a wiki)
> and you can create your own author page I believe to include
> information if you so desire.
>
> ...
>
> read more »
Now, you can say however that part of all the info that was in my head
before making that small doc, wasn't all from joomla sites and
strictly speaking that is also copyright violation (even if I
processed it, mixed it with other sources, and derived my own texts
from it)..
Don't answer this. Just being the devil's advocate here...;-) ;-)
> ...
>
> read more »
--
You received this message because you are subscribed to the Google Groups "Joomla! General Development" group.
To post to this group, send an email to joomla-de...@googlegroups.com.
To unsubscribe from this group, send email to joomla-dev-gene...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/joomla-dev-general?hl=en-GB.
On Mar 8, 4:00 pm, klas.ber...@gmail.com wrote:
> Dne 8. mar. 2010 15:05 je e-builds <0ru...@gmail.com> napisal:
>
>
>
> > Thanks, klas. It really helps.
> > I have some further remarks/questions below.
I c. Thanks for clarifying.
>
> > > > But I still have some bottleneckish remaining questions for which I
> > can't
> > > > seem to find closing answers. I hope I can get some help here.
> > > > Here I go:
>
> > > > 1. I want to cache the result of my component (including template).
> > > > Since the resulting html is pretty straightforward to the view and
> > url, I
> > > > thought to do this a bit as com_content does this -> by setting the
> > $caching
> > > > parameter to true for the controller display method. See further in
> > code
> > > > below.
>
> > > > But using the JProfiler it seems that nothing changes much after the
> > first,
> > > > initial loads!? The behavior is also kind of weird.
> > > > I wonder,.. is this the result from my mysql-server's own caching? I'd
> > > > doubt that since the results are so close that no noteable difference
> > can be
> > > > seen. ... Maybe components are already cached in some way on another
I tried filecache and it works! Great. (Just some milliseconds left
and consistently this time!)
I am switching to file cache (also on my live site). Thanks for your
help, guys. (You too, francesco).
FYI, at the end of this post are the Profiler test results.
At least this thread has confirmed that APC (Joomla) user cache (and
others, except file) are not advized in 1.5.
Since the cache drivers are clearly broken in 1.5, is it OK for
everyone if I add "cache is broken in 1.5 (except filecache)" on the
doc?
Or can anyone provide a more detailed text so doc-readers don't think
everything is broken in the caches? I don't grasp all the exact
cases.. For example should I add "But all caches are redirected to
filecache from 1.5.??", but doesn't that also give problems with
parameters etc..
> > > > component. Ie, is it ill-advized to use view-caching like above and at
> > > > the same time us JCacheCallback to do query caching further down (in
> > the
> > > > model)? One side of me says "you never know", the other says "keep it
> > > > simple and not redundant in combination with mysql caching. Even if
> > the
> > > > latter is worse, you still have the view-cache".
> > > > Do any of you have some experience or know if it is meant that way?
>
> > > Depens on what you are doing, eg, if you are have data sources that you
> > > will reuse need later it makes sense to cache that model or individual
> > > source - remote XML source would an example, you fetch the whole XML and
> > > use it's cache for further processing.
>
> > So, if the functions of the component is not used except for 1 view,
> > you see no use for it?
> > I would think the same..
>
> > > > 4. Since I can't test it, I have to ask:
> > > > In my view-caching in point 1. above, does this only work when Global
> > cache
> > > > is on, and thus have to override it if I always want to cache it, or
> > does
> > > > that method ignore those settings?
>
> > > > You can override, see that link I pasted.
> > > > 5. There is some talk that the system cache plugin (page cache)
> > > > should be enabled to see other caches working (View/module/developers'
> > > > specific caches). Is there anyone that knows for sure? Is this a bug?
> > It
> > > > seems very hard to detect this..
>
> > > > Plugin has no direct effect on other cache types
> > > > 6. Is it advized to use the JCache to cache*
> > php-generated**thumb(file)s of images
> > > > *?
> > > > (Possibly check this also: very detailed topic about Cached Thumbs,
> > incl.
> > > > codehttp://forum.joomla.org/viewtopic.php?f=500&t=459266>)
>
> > > > a. If so, which handlers/functions should I use for imagefiles and
> > > > how do I set the lifetime?
>
> > > > b. If not, how else should I do it (write my own cache? other
> > cachejoomla library? ..)
>
> > > > Thanks in advance
>
> > > > Cheers, e-builds
>
> > > Why don't you just cache created thumbnail files?
> > If you mean "joomla" cache, I can name 3 reasons or rather "doubts".
> > And I have no idea if there is a solution for each one.
> > 1. Because I am not sure APC can do that / is optimal for images.
> > 2. Which URLs do I give then in the html, since there are no files for
> > APC?
> > 3.a. Sometimes I, the developer, or the site's administrator would not
> > want to crowd the same cache with thumbnails. In other words: If the
> > cache is limited, you'd still want some important thumbs cached.
> > 3.b. Other scenario: thumbnails should have a priority (whether to
> > keep them cached or not) based on the occurence hits ot them, and
> > sometimes even with a different priority scheme from other cached
> > objects.
>
> I meant, store generated thumbnails as files (eg thumb_filename_size_.jpg)
> and then directly link to those files in your html. Storing/reading
> anything from JCache requires computing power, so even with enough server
> memory for APC, simple file read is probably faster. If you will test which
> one actually performs better please report back, it would be interesting to
> know for a fact.
I c. Well that is what I did for now. Sorry I can't give those tests
you would have liked. :-)
But this means I have to make a garbage collector myself. Any
experience on that with Joomla's framework?
And which path do I use? Do I use the same path as filecache or the
temp path. And are they represented in some joomla (configuration)
variable, like JPATH_CACHE or so? I am gonna let the administrator
choose of course, but when he chooses nothing or default, I need to
know where joomla holds these paths, and which would be the best (e.g.
no accidental cleanup or other actions are done by the framework in
some of these paths).
FYI: As I said in that other post, I intend to propose my class for
the Joomla library in the future. I hope the other developers are
still stuck where they left it.
>
>
> > > > PS Is the development forum still used and if so what for with alle
> > the
> > > > existing dev Google Groups? I am confused..
>
> > > > --
> > > > You received this message because you are subscribed to the Google
> > Groups
> > > > "Joomla! General Development" group.
> > > > To post to this group, send an email to
> > > > joomla-de...@googlegroups.com.
> > > > To unsubscribe from this group, send email to
>
> > joomla-dev-general+unsubscr...@googlegroups.comjoomla-dev-general%2Bunsu...@googlegroups.com>
> > > > .
> > > > For more options, visit this group at
> > > >http://groups.google.com/group/joomla-dev-general?hl=en-GB.
>
> > > --
>
> ...
>
> read more »
--->WITHOUT caching:
-->Page with get-request-variable 1 (/links-sep/links/
rechten_shit_video)
=> Start with caching: 0.000 seconds, 4.82 MB Stop: 0.458 seconds,
5.41 MB
=> Start with caching: 0.000 seconds, 2.03 MB Stop: 0.059 seconds,
2.57 MB
=> Start with caching: 0.000 seconds, 1.77 MB Stop: 0.054 seconds,
1.88 MB
=> Start with caching: 0.000 seconds, 2.03 MB Stop: 0.070 seconds,
2.57 MB
=> Start with caching: 0.000 seconds, 2.03 MB Stop: 0.075 seconds,
2.57 MB
=> Start with caching: 0.000 seconds, 1.77 MB Stop: 0.064 seconds,
1.88 MB
-->Page with get-request-variable 2 (/links-sep/links)
=> Start with caching: 0.000 seconds, 1.77 MB Stop: 0.105 seconds,
2.03 MB
=> Start with caching: 0.000 seconds, 4.81 MB Stop: 0.100 seconds,
5.36 MB
=> Start with caching: 0.000 seconds, 4.81 MB Stop: 0.116 seconds,
5.36 MB
=> Start with caching: 0.000 seconds, 4.81 MB Stop: 0.098 seconds,
5.36 MB
--->WITH caching ("File")
-->Page with get-request-variable 1 (/links-sep/links/
rechten_shit_video)
=> Start with caching: 0.000 seconds, 1.80 MB Stop: 0.060 seconds,
1.96 MB
=> Start with caching: 0.000 seconds, 1.78 MB Stop: 0.002 seconds,
1.87 MB
=> Start with caching: 0.000 seconds, 4.82 MB Stop: 0.006 seconds,
5.04 MB
=> Start with caching: 0.000 seconds, 1.87 MB Stop: 0.005 seconds,
2.09 MB
-->Page with get-request-variable 2 (/links-sep/links)
=> Start with caching: 0.000 seconds, 4.80 MB Stop: 0.102 seconds,
5.42 MB
=> Start with caching: 0.000 seconds, 2.01 MB Stop: 0.006 seconds,
2.23 MB
=> Start with caching: 0.000 seconds, 4.80 MB Stop: 0.006 seconds,
5.02 MB
Some more information on these results:
You can see from the tests without caching, that "some" caching must
still occur "somewhere" (0.458 sec to 0.059 sec. for example).
Since the first view of the second page (which actually holds a lot
MORE data) loads 4 times faster than the first view of the first page,
I conclude this is the external APC opcode caching that is still
active, maybe in combination with external mysql caching.
For what it's worth, this demonstrates the great benifit from those
caches! And if you guys allow me to say it, the benifit of
minimalising the joomla footprint. Though I guess the amount of
servers that don't use some kind of opcode caching are few and fewer,
but then again, it's default memory is still very limited. I hope I
can raise my own above 30MB once..(hosted).