Smarty Cache (Truly Static Cache?)

Is it possible to use Smarty Cache where basically every page is served statically if the customer is a guest?



Our previous shopping cart had this feature. It used Smarty Cache and

generated static html files using Smarty Cache (Chapter 14. Caching | Smarty)

to ensure optimal performance.



Anyone have any luck setting this up or even know if this is possible or not?

The whole point of having smarty cached pages is performance.



Not quite sure what you're asking. The pages are static (compiled already) and the only thing that is dynamically fed to them is the actual data. But the layout and styling is static based on what the templates compiled to.

[quote name='tbirnseth' timestamp='1319163324' post='124191']

The whole point of having smarty cached pages is performance.



Not quite sure what you're asking. The pages are static (compiled already) and the only thing that is dynamically fed to them is the actual data. But the layout and styling is static based on what the templates compiled to.

[/quote]



Yes I mean't the data as well. Thats one of the heavier loads on the site is

the data part. The layout being cached doesn't completely fix the speed issue only partially.



Smarty has various ways of caching one includes layout another can include the complete

file data and file so each time a different page loads the database is only hit once for

each page and then its in cache until the cache has been cleared. It really really sped

up my custom scripts in the past.

To me, that would defeat the whole purpose of having a data driven system.

How do you account for 5 languages and 5 currencies? 25 versions of the same page?

Would be dumb to do it that way (though the current smarty cache already accounts for languages).



Maybe you should look into whatever performance issues you are having and solve them. I.e. what's called “root cause analysis”.

[quote name='tbirnseth' timestamp='1319224942' post='124264']

To me, that would defeat the whole purpose of having a data driven system.

How do you account for 5 languages and 5 currencies? 25 versions of the same page?

Would be dumb to do it that way (though the current smarty cache already accounts for languages).



Maybe you should look into whatever performance issues you are having and solve them. I.e. what's called “root cause analysis”.

[/quote]



true of course i was thinking for the primary currency and language would only be truly cached.



i have no clue what the issue might be with performance. im beginning to think my vps

is the issue. i have installed the factory install and it still takes 3-5 seconds

to load each page. These are not intense pages either just category pages with

6 products on them.

There are many consultants on the board who might be able to help you. But they will need shell access to your server to do so to assess what's going on (if they tell you otherwise, they don't know what they're doing). You will likely NOT be able to get a fixed bid quote since it is an investigation and diagnosis which simply takes time and experimentation (multiple hours).



You might just put a static page in the root of your store that you know performs well somewhere else. Then run a load test against it and see if it performs the same. If not, then it's something in your environment. I"m not a big fan of VPS's since how much a host loads up the underlying server gets one into the same issues as shared hosting and most merchants don't really know enough about “systems” to be managing a virtual system. In many ways, a shared environment can perform better than a VPS if the VPS is not configured adequately and the host is not milking resources…



You can do things yourself (but you probably wouldn't be posting here if you knew how) but experience goes a long way in these situations, but usually costs money.



Just note that you want to “look” from the server, “up”, not from a web-browser, “down”. Completely wrong approach for analyzing the problem, but a reasonable way to identify that a problem might exist and to reproduce it for a proper look.

[quote name='solesurvivor' timestamp='1319250644' post='124286']

true of course i was thinking for the primary currency and language would only be truly cached.



i have no clue what the issue might be with performance. im beginning to think my vps

is the issue. i have installed the factory install and it still takes 3-5 seconds

to load each page. These are not intense pages either just category pages with

6 products on them.

[/quote]



I'd start with mailing your host. Just tell them your shop is way slower then it should be and in a friendly way ask if they'd know why.