Are files included despite of "late init" checkbox?
-
Hello,
For a number of reasons I need to include static files in my templates.I utilized, as written in the FAQ, the fragment caching with “disk: Basic” and I put the following code in my templates:
<! – mfunc SECRET_FRAGMENT_CACHING_PASSWORD ->
include (“/ tmp / header_with_codes.txt”);
<! –/mfunc SECRET_FRAGMENT_CACHING_PASSWORD ->Everything works perfectly, but I noticed, as indicated in the note next to the checkbox, a strong performance degradation in terms of delivery of the pages. This degradation is unfortunately not acceptable for the site I’m working on.
Out of curiosity I tried to remove the check mark from “fragment caching” and I noticed that the static files are still included and at a speed perfectly respectable.
So to summarize:
Case A: disk: Basic + fragment caching files included but checked = SLOW performance.
Case B: drive: Basic + fragment caching files still checked = NOT included with very good performance.
I also checked the files generated as a cache, and both contain the code of the includes.
I am very pleased that the Case B works, but I wondered if this was not a bug or if I have not made ??any configuration error!
Can I take it for granted that the case B continue to operate even in future versions of total cache? I’m using version 0.9.2.11
Regards,
Marcello
- The topic ‘Are files included despite of "late init" checkbox?’ is closed to new replies.