Re: Slow connection to Data base

2011-04-26 Thread Ayman Bedair
Well of course a DB on the same server should connect much faster than a DB on an external server. Yet in your case it's on the same LAN so there shouldn't be huge delays with it! The best thing to do is as "circket" suggested. Create a simple PHP- Script page that uses normal DB connection functi

Re: Fatal error: Allowed memory size of 16777216 bytes exhausted

2010-07-13 Thread Ayman Bedair
This happened with me on the local windows server while testing, didn't really see the problem up on my live one. Anyway if u have access to the PHP.INI file you can just go there and edit the "memory_limit = 16M" value to something like "memory_limit = 50M". I had this set to 150MB and it didn't

Re: HTML5 Cache MANIFEST and Cakephp

2010-07-03 Thread Ayman Bedair
UPDATE: Now I Included NETWORK: /requests /requests/ /requests/* */requests/* requests/ requests in the file... I don't know which line worked for it but it doesn't include anything in the cache now. It removes all cached links when the requested URL is somewhere in the requests controller. I w

HTML5 Cache MANIFEST and Cakephp

2010-07-03 Thread Ayman Bedair
I've been trying to speed up stuff with my web app recently. I thought it'd be useful to start caching some of the images, css and js files for offline usage and that my help in getting the thing to run faster. I've created the following Cache Mainfest file for test: -- FILE STARTS HERE -

Re: My App is Getting too Slow

2010-04-11 Thread Ayman Bedair
Ok thanks AD, here is what I got from the Profiler I still can't understand which part to investigate and what eats up all the resources here: http://www.eg-host.net/cache_grind_requests_controller.zip Sorry for pasting the Model relations the way I did... thought this will be less confusing

Re: My App is Getting too Slow

2010-04-10 Thread Ayman Bedair
Hey Jon... Actually I am running this on a windows server so the folders should be writable with no problems. I only have the Containable Behavior on all the models (AppModel) and Tree in both ARO and ACO (ACL) models. I believe this is not a problem. Here below is an example of the associated

Re: My App is Getting too Slow

2010-04-10 Thread Ayman Bedair
Got this error when I installed the profiler ( ! ) Fatal error: Maximum function nesting level of '100' reached, aborting! in C:\AppServ\www\test\memphis_erp\cake\libs\folder.php on line 239 Call Stack # TimeMemory FunctionLocation 1 0.0041 135648 {main}( ) ..\ind

Re: My App is Getting too Slow

2010-04-08 Thread Ayman Bedair
That is what i get from the debug timer: http://www.eg-host.net/887.jpg I still have no clue what takes most of the time and what is the normal time of doing the core processing :S ANY HELP?! Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related

Re: My App is Getting too Slow

2010-04-08 Thread Ayman Bedair
I never tried any debuging kit I'll give it a try... and BTW it took 24 ms not 79 ... I am sure the thing is a Cakephp issue. Will try a debug kit and will let you know if I find anything interesting. Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP r

Re: My App is Getting too Slow

2010-04-08 Thread Ayman Bedair
Well thanks for your help... Actually all 79 queries are made on the same database that runs on the same machine. My app is a CRM application where most of the pages can't be convert to a static one ! Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP re

My App is Getting too Slow

2010-04-06 Thread Ayman Bedair
My CakePHP app is getting very slow... Although the debug give me "(default) 79 queries took 24 ms" the pages takes about 8 to 10 seconds to load. Other script running on the same server are performing well, even empty pages on this same application is still loading good with all the App Controller