Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

Redis Cache Rate Topic   - - - - -

 
  • natewallis
  • Senior Member
  • Members
  • Join Date: 11-Jan 13
  • 197 posts

Posted 11 January 2016 - 06:47 AM #1

Hi there, 
 
I have been using Redis for the CS-CART cache and all is going well.  However there appears to one issue that pops up every now and then and I am having a bit of difficulty solving the issue as I am not a redis expert. 
 
I have temporarily switched the caching back to 'file' cache.  
 
During one debug session, I was able to determine the cause of the issue.   The issue is the PHP script goes for over 1 minute while strpos() is called repeatedly.  Extending the max_execution_time does not solve the issue, it just takes longer for the page to crash.  
 
I have attached a screenshot of the cachegrind debug session in case that helps anyone.  It shows the functions that are called for strpos to be triggered.  
 
Anyone else experienced this issue?  This issue takes a while to appear if I flush the redis cache, but gradually creeps back in over time. 
 
Cheers, 
Nathan

Attached Files



 
  • abolshakov
  • Architect
  • CS-Cart Architects
  • Join Date: 20-Aug 14
  • 93 posts

Posted 22 January 2016 - 10:37 PM #2

Hello Nathan,

 

Sorry for the late response.

 

Looks like strpos along with Registry::del() are mostly called when the cache invalidation is performed. 

 

Can you please provide an access to the full cachegrid.out file? Also, what version of CS-Cart are you using?

 

Regards,

Alexander Bolshakov

Technology Evangelist of CS-Cart


Alexander Bolshakov
CS-Cart Architect Team


 
  • natewallis
  • Senior Member
  • Members
  • Join Date: 11-Jan 13
  • 197 posts

Posted 23 January 2016 - 10:49 AM #3

Sure - how can I send you a private message with the information?  I don't want to put my the link in the public forum. 



 
  • abolshakov
  • Architect
  • CS-Cart Architects
  • Join Date: 20-Aug 14
  • 93 posts

Posted 23 January 2016 - 12:55 PM #4

Sure - how can I send you a private message with the information?  I don't want to put my the link in the public forum. 

 

You may send me an e-mail to abolshakov@cs-cart.com


Alexander Bolshakov
CS-Cart Architect Team