Jump to content

abhilashss

Members
  • Posts

    9
  • Joined

  • Last visited

abhilashss's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. The issue has been fixed when I add this; apc_clear_cache() . "\n"; apc_clear_cache('user') . "\n"; apc_clear_cache('opcode') . "\n"; The cache problem occurred due to apc_cache. We can add above lines in some php file and call that file after each new change.
  2. It worked only when I restart php. is there any other solution?
  3. I am trying to edit content of Contact us page in Magento. "app/design/frontend/enterprise/mytheme/template/contactus/contactus.phtml" I cleared cache, but change not showing on front end. I deleted files in /var/cache, but no luck. The magento site is in nginx. Please let me know if there is anything else other than cache to view changes in magento?
  4. The mongo text index may be able to help you. - Mongo text index did the job. Thank you.
  5. I am searching for bad words in emails. For example; Say 'spam' and 'junk' are bad words. So testspam@gmail.com - invalid junktest@gmail.com - invalid. I will check mongo text index. Thank you for your detailed reply.
  6. Actually we are using Mongodb to store these keywords,bounce emails,throwaway domains etc, and we gave indexing for tables(collections). Here is the sample code we are using to compare with Bounce list of emails. $collection = $db->bounce; //find if values are in bounce file //$emailds - list of emails uploaded. $cursor_bounce = $collection->find(array($section => array('$in' =>$emailds))); The above code gives results in fraction of seconds when compared with 'bounce' table(have 30 million records) with 1 million email ids.
  7. Thank you for your answers. I gave spam,junk as an example. I am doing a php script to validate email addresses(These emails will be stored in csv file, and administrator upload this file). This is not a one time task. We have various parameters to validate these emails addresses. For example; We have list of bounce emails, we check our input email addresses with these bounce emails We have list of throwaway domains, we check our input email addresses with these throwaway domains etc etc Keyword checking is one of those validation checks. In all of the above explained methods, only keyword checking is slower. So am looking for best method to check if keyword is present anywhere in email or not. You are right there won't be 20K bad words. But we are using 20K just for checking how it work with 1 million email addressses. I hope I have explained the scenario. Please let me know if you have any questions.
  8. Hi, I am stuck with the FedEx integration onto magento.I have passed all the required parameters at the back-end side and still I am getting the error “This shipping method is currently unavailable. If you would like to ship using this shipping method, please contact us. magento” during checkout.It would be great if I can obtain possible solutions for this. I would like to know how we can see the exact error message rather than default magento error. I checked in system.log and exception.log , but I couldn’t find any useful information for the above issue. After few crosschecks I came to know that the weight of the products are not set according to the standards.Hence changed it accordingly and the previous error is not shown now, rather its showing “Sorry, no quotes are available for this order at this time” ,what should be done from my side in order to tackle this. Here is test Fedex details am using; Password:Ma2ofJXcyVg2LptDSBwis0Gs0 Account Number:510087828 Meter Number:100177821 Please help me to resolve this issue. Thanks
  9. Hi, I have large list of email addressses from a file. It comes around 1 million email ids. I have list of bad words like spam,junk etc, it consist of 20,000+ bad words. I need to validate email ids. If bad words is present any where in email id it will be marked as invalid. For example; testspam@gmail.com - invalid newuser@desspam.com - invalid I would like to know which will be fastest comparison method as array looping will take time. I tried following methods, but this also takes time. //$keyword_list- array of bad words; //$check_key- the email id which need to validate $arrays = array_chunk($keyword_list, 2000); for($i=0;$i<count($arrays);$i++) { if (preg_match('/'.implode('|', $arrays[$i]).'/', $check_key, $matches)){ return 1; } } Please help me to find out best method considering perfomance of script. Thanks, Abhilash
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.