Jump to content

Cached Skin Templates


bsmither

Recommended Posts

For the longest time, I have been advising store owners who are developing/editing a skin to disable the cache.

 

By disabling the cache, I was implying that Smarty (the template rendering engine) would not use the cache even though rendered templates were being put in the cache. Smarty would be told, or otherwise determine, to not use the cache.

 

Recently, I had occasion to test something. My discovery suggests that, at least with CC5213 and CC5216, Smarty will use the cache regardless of the admin setting. (CubeCart will honor the setting when using the cache for SQL queries and other purposes.)

 

So, if Smarty is not being told to not use a cache, how does Smarty know if a template has changed? And why do some people have issues with an edited skin template not showing those changes on the page request?

 

After my recent experiments, I really do not know.

 

But looking for the code where the admin setting is tested by Smarty, or a Smarty setting is changed to be in sync with the admin setting, I cannot find it.

 

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...