roger8wilco Posted January 25, 2015 Share Posted January 25, 2015 Is there a way to disable cache in v6? I've searched and searched but don't find anything. Enabling debug mode doesn't see to do the trick.. I remember is being in Store Settings/Advanced in v5 I think? Quote Link to comment Share on other sites More sharing options...
bsmither Posted January 25, 2015 Share Posted January 25, 2015 The blurb about CC6 includes the statement that the greatly improved caching system is on by default. I would say it is enabled with no way (as yet) for the user to turn it off. In some code in admin, when adding/editing a product or category, the cache is switched off temporarily while certain things are getting updated. The cache system is supposed to be greatly improved. How? I can't tell. I will have to assume that changes to the skin, or other outside the box monkey-business will be detected and dealt with. Quote Link to comment Share on other sites More sharing options...
Al Brookbanks Posted January 25, 2015 Share Posted January 25, 2015 V5 made a tonne of queries on every page load for the same empty queries. V6 skips known empty queries. APC and xCache are quite significantly optimised too. Why would you want to turn it off? Quote Link to comment Share on other sites More sharing options...
Al Brookbanks Posted January 25, 2015 Share Posted January 25, 2015 Put it this way with cache off the homepage may have a whopping 70+ queries. With the cache on it should go down to about 4. APC or xCache is recommended and will be used automatically if available. These shoukd perform better than the default "file" cache as it is served direct from memory with no serialize/unserialize and no reading of files. Quote Link to comment Share on other sites More sharing options...
bsmither Posted January 25, 2015 Share Posted January 25, 2015 Just so you know, I have not experimented extensively with CC6 as of yet. We had a conversation a while back about the debug listing. I want the listing to contain everything (pertinent, not everything) that goes on until an actual page is spit out. That means to collect each debug load for each "phase". That is to say, a POST is submitted, collect debug, CubeCart issues an httpredir(), so the browser makes another request from the 301/302/whatever, collect debug, CubeCart does something else and starts over, collect debug, then finally, an honest-to-goodness page gets delivered with all that debug. We also talked about the debug list of queries indicating if a query was actually, factually sent to the database and subsequently cached [Cache Write] or not [Cache Off], versus a query that was found in the cache [Cache Read]. I would like to add to the debug process, the accumulation and listing of other miscellaneous cache writes and reads (but not Smarty compilations). I would say, if there are reasons to provide a mechanism to "easily" clear the cache, then there must also be (the same?) reasons to switch it off. Those of us who knows what the cache is, knows the consequences of it being enabled and, more importantly, disabled. Quote Link to comment Share on other sites More sharing options...
Dirty Butter Posted January 26, 2015 Share Posted January 26, 2015 My question concerns the process of creating a new skin. It would be nice to be able to disable cache then, as I don't care how slow the page is under that circumstance. Quote Link to comment Share on other sites More sharing options...
roger8wilco Posted January 26, 2015 Author Share Posted January 26, 2015 It was while creating a new skin. The navigation tree (element.navigation_tree) was getting cached so it was annoying to delete the cache every time I made a change Quote Link to comment Share on other sites More sharing options...
bsmither Posted January 26, 2015 Share Posted January 26, 2015 I just tested making an inconsequential change (version in the comment block). Smarty noticed the filetime change and re-compiled. I am on Windows XPSP3. Can you verify that your server operating system can respond to PHP's filemtime()? Quote Link to comment Share on other sites More sharing options...
Al Brookbanks Posted January 26, 2015 Share Posted January 26, 2015 I agree that during development the cache needs to be disabled. I'll add the setting back and maybe add a warning on admin login that's its disabled.I also agree that the debug needs to preserve some data. Quote Link to comment Share on other sites More sharing options...
Al Brookbanks Posted January 26, 2015 Share Posted January 26, 2015 Issue created.. https://github.com/cubecart/v6/issues/129 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.